I create a codeunit try to return xml format data and it will over 1028 max text datatype length . But codeunit return value datatype not allow bigtext. How could I do it ?
Now when calling the cu you populate the global bigtext during runtime of the CU.
After CU runnning is done, call the GetTheResult function.
You hav to use a CU declared as variable for this, you cannot use codeunit.run("123");
Now when calling the cu you populate the global bigtext during runtime of the CU.
After CU runnning is done, call the GetTheResult function.
You hav to use a CU declared as variable for this, you cannot use codeunit.run("123");
Answers
Add Parameter for Bigtext as VAR.
Exit the Bigtext.
GetTheResult(VAR TheResult : BigText)
TheResult := GlobalBigText;
Now when calling the cu you populate the global bigtext during runtime of the CU.
After CU runnning is done, call the GetTheResult function.
You hav to use a CU declared as variable for this, you cannot use codeunit.run("123");
Thanks for you reply. It works fine .
instead of
P.S. max length is 1024