If the REST service is sending back more information than just an integer, I assume it’s sending either JSON or XML? If this is the case, then look at producing an Import Mapping to read the response and extract the data you need.
https://docs.mendix.com/refguide/mapping-documents
Hi Robert,
Thanks for you response.
It’s indeed JSON. I’ve had a look at the mapping documents. Is there perhaps a guide how to map incoming JSON data from a post rest call?
I’m having difficulty creating the mapping.
Best,
Wouter
Hi Robert,
Thanks. With help I managed to build the flow and map the API response. However, from UbiOps I’m getting an error that the request body is not a valid JSON type. How do I include a variable of type string in a JSON payload for consuming the REST api?
Do you know how to solve this?