JSON mapping add NULL filed instead of absence

2
HI, Is there a way to set the mapping so that if a field is null, we have the 'field":NULL, instead of the filed not in the json?    Thanks Shannon
asked
3 answers
2

Hi Shannon,

You can setup a microflow in your mapping to handle this case. 

 

If you double click the entity, you can change the method from create to microflow, which will give you full flexibility about what values will be written. 

answered
1

To add onto Austin's answer. I have built out the microflow he's mentioning.

https://modelshare.mendix.com/models/9e6f04f5-312b-4e0e-9ed0-afe894932390/rest-format-end-date

answered
0

See my answer on this (similar) question: https://forum.mendix.com/link/questions/92121

You can set it to send empty values in the Properties tab of the Export mapping. I checked and this is available in 7.8 – it should be available in Modeler 7.11 as well. :)

answered