Use Mendix's magic:
- Create a JSON-structure:
- Now create an imort mapping:
- Go in your microflow to your activity RestCall, tab Response and in box ‘Import mapping’ select your mapping. Now you will see an option for 'List’
You need 1 entity with 3 attributes in it.
When you want to export, you can configure it to accept the List of objects for the entity.
Check this link: https://docs.mendix.com/refguide7/export-mapping-action
Key 1 you can make it unique in your domain model with Validation rules
When you want to create these objects using REST POST service, then you can restrict it in your import mapping
Check https://docs.mendix.com/refguide7/import-mappings#1-1-obtaining-an-object