Consumed REST (POST) doesnt store the response info in the object

0
Hi,   I have been trying to use a consumed rest service to connect to a certain API. I have created a POST request and configured it. When I test it, I get the expected response. So I created a response entity through the configurator. In the microflow I call the REST service and have the return value configured in the variable. But then the object seems empty.   I put the debugging / trace on the REST Consume and I can I sent a correct request and get a response. Does someone has a suggestion what to change?       In addition, the request and the response:   And the entity:   Kind regards, Randall
asked
2 answers
1

Hi Randall,

 

Thank you for sharing; it seems a Mendix bug to me, as you configured everything well.

You could try loading a Swagger contract in Mendix 10.21:

image.png

 

Otherwise, I would switch back to the "Call REST" activity and split the export mapping, call and import mapping in 3 separate activities in your microflow to apply proper debugging.

Good luck!

answered
0

Hi Randall,

First, store the response in the Import Mapping. After that, the response will be available as an Import Mapping NPE object. You can then store this NPE response in a persistable entity.

answered