How to Export Mapping with Json with list data?

0
How to Export Mapping with Json with list data? Any document or example how to use export mapping? I tried to export mapping but i am getting error where, export mapping requires a parameter but none is specified in the action.
asked
2 answers
3

Hi Chetan,

Check these pages about export mappings. When you use message definition you will probably have to enter a list of the entity you want to convert to JSON in the export mapping activity in your microflow.

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

https://docs.mendix.com/refguide/export-mapping-action

https://docs.mendix.com/refguide/message-definition

answered
1

Chetan,

I've done this before when exposing a POST API with the rest module. 

 

 

This was my json I was creating 

 

This was the export mapping I created

This was my domain model

 

and here is the microflow I used to  create the objects for the export mapping activity

I shared my microflow to the model share if you want to take a look. I created this awhile back in a test project.

https://modelshare.mendix.com/models/3a402158-7fdb-40b0-924c-8e40195abbc1/example-api-that-returns-a-list

answered