Skip to content

Data Value Type: Data Mapping

With the Type: Data Mapping a value can be returned dynamically and filtered from another table into the XML.

Returning codeunit text longer than 250 characters

This requires installed CORE and, for eDocuments, eDocuments versions that include the BLOB return methods below. The methods are not available in older symbols; update the app dependencies and symbols of your custom extension before using them.

If this data value uses a CORE mapping line of type CODEUNIT, return long text with Rec.SetDynMappingReturnValueText(LocalResultText) on SIM_CORE Temp Table. Do not use SetFunctionReturnValueText for this path; that method belongs to a data value of type Codeunit. See BLOB text returns in CORE and direct codeunit data values.

Example

When the table 112 - Sales Invoice Header - is set up in general, then it is possible to define the value from another table with the type Data Mapping. To get back a value from another table, you need to find a unique value that matches in the destination table and in the source table. This is important to jump from table to table. After that, you may need to define a filter to specify the value you want to return to the XML.

See also