Adding different data types to custom request template (REST activity)

I am sending a request through call REST activity but I need to include different data types in the custom request template with the body according to the below JSON structure: This is the one that I used in postman  but I couldn’t apply the same in Mendix as the custom request template accepts string variables, what can I do to send a request with the above JSON data without converting the non-string variables to a string?
1 answers

Hi Abrar,


What you can do is change the dropdown to ‘Export mapping for the entire request’. 



Then for the mapping, create a new JSON structure in your file explorer, and create an export mapping with that JSON structure as source. After that you can generate the needed non persistent entitities, which you can then create in the microflow calling the rest service. Select the just created export mapping in your request and add the non persistent object as input parameter.

For more information, check this documentation page.