Calling REST for PUT/POST request in Mendix

0
Hello,   Has anyone used REST for PUT/POST request? I'd like to see the microflow action and how the values entered are passed to the microwflow. A simple example of calling REST to pass one attribute would do too. Thanks!
asked
2 answers
1

Hi Bob,

Thanks for the response.

I have got my JSON structure and Export mapping done. 
Attaching the screenshots of the Domain model, export mapping, Home page and the microflow used to call the service. Not able to figure out what is going wrong exactly.I have got my JSON structure and Export mapping done. 

 

answered
0

Hello,

  Have you seen our examples and documentation for how to call a REST flow?  Here is an example of how to make that call:

https://docs.mendix.com/refguide/call-rest-action

Here you can see how to set the method to POST or PUT

To pass values to ta REST call, you can use an Export Mapping, as outlined here:

https://docs.mendix.com/refguide/export-mappings

or you can create the template yourself in the Microflow action.

Let me know if this gives you what you need. 

Best,

Rob

answered