Problem
An importmapping can return an object or a list.
The MDL syntax always states it is a list.
Reproduce
Create an importmapping that returns an object
Create an importmapping that returns a list of objects
Create a microflow
add an activity
Type: "Import from JSON" that uses the importmapping **that returns an object**
Range: this option is not available for this type of mapping
Store in variable: Yes
add a second activity
Type: "Import from JSON" that uses the same importmapping **that returns a list**
Range: "All"
Store in variable: Yes
retrieve the microflow MDL syntax with mxcli
compare the MDL syntax of both activities
MDL Output
The following source lines shows the MDL of both activities:
$objectResponse = import from mapping TestModule.MF_importmapping_rest_object($sCountryISOCode) all;
$listResponse = import from mapping TestModule.MF_importmapping_rest_list($sCountryISOCode) all;
Both contain the 'all' postfix.
Expected MDL output
The syntax of object response should be without the 'all' postfix:
$objectResponse = import from mapping TestModule.MF_importmapping_rest_object($sCountryISOCode);
The syntax of the list response in this example should be:
$listResponse = import from mapping TestModule.MF_importmapping_rest_list($sCountryISOCode) all;
Remark: postfix depends on the range settings (see issue v0.23.0)
Environment
MxCLI: v0.23.0
StudioPro: v11.12.3
Problem
An importmapping can return an object or a list.
The MDL syntax always states it is a list.
Reproduce
MDL Output
The following source lines shows the MDL of both activities:
$objectResponse = import from mapping TestModule.MF_importmapping_rest_object($sCountryISOCode) all;$listResponse = import from mapping TestModule.MF_importmapping_rest_list($sCountryISOCode) all;Both contain the 'all' postfix.
Expected MDL output
The syntax of object response should be without the 'all' postfix:
$objectResponse = import from mapping TestModule.MF_importmapping_rest_object($sCountryISOCode);The syntax of the list response in this example should be:
$listResponse = import from mapping TestModule.MF_importmapping_rest_list($sCountryISOCode) all;Remark: postfix depends on the range settings (see issue v0.23.0)
Environment
MxCLI: v0.23.0
StudioPro: v11.12.3