63
Views
2
Comments
Max Text length in extension attributes
Question

Hi,

I have been working on en extension, with the need to pass some strings as output parameters. I noticed there is a (mandatory) MaxLength setting for Text attributes. As I would like to support really long strings, I just filled in the max string size (2147483647).


I will be using these Text parameters only in the created Server Action, no need to store it in the database.

Is this a good idea? Or does Outsystems for some reason really allocate the strings in the background? What is the MaxLenth Attribute actually needed for?

Can someone help me with this question?

Thank you very much

Maria

2018-12-01 17-54-01
Sourav Pasari

Can you try setting it to 0

It is allowing me to publish and you can get long text. Try it.

Thanks

Sourav

2023-03-29 08-44-49
Maria Tvarozkova

Hi Sourav,

thanks for the answer, good to know that it will also work with Length 0. I assume the length is needed for purposes, when the structure is reused in Outsystems.

So the length setting is not relevant for the extension, but for the consuming Outsystems app.

So I will reformulate my question  - is it a bad idea to define a structure with such long text fields? What is the MaxLenth attribute needed for?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.