SIMOVA / EDOCUMENTSRelease 29.0.4.0
Complete Reference Text
Complete Codeunit Return Text in Document Mappings
This release fixes truncated codeunit-generated text in document mappings. Custom codeunits can use new text-return methods to transfer values longer than 250 characters.
Fixes
Preserve codeunit-generated text beyond 250 characters#20471
Dynamic data mappings and eDocuments data values now support complete codeunit return text longer than 250 characters. Previously, the legacy return fields truncated longer values, such as an invoice header BuyerOrderReferencedDocument reference, in the generated document.
Custom codeunits must use the new text-return methods to transfer longer values. Existing codeunits retain fallback to the legacy return fields and keep their existing behavior. Those fields remain limited to 250 characters, so removing CopyStr alone does not remove the limit.
- Dynamic data mappings Use
SetDynMappingReturnValueTextandGetDynMappingReturnValueTextto write and retrieve complete return text. - eDocuments data values Use
SetFunctionReturnValueTextandGetFunctionReturnValueTextto write and retrieve complete return text. - Text preservation and restrictions Both paths use BLOB-backed handling to read complete UTF-8 text, preserving Unicode characters and line breaks. Returned text remains subject to the target document schema or profile restrictions.