Reserved word type - unable to use as attribute in entity

0
Hi all, I am trying to consume a REST POST service which requires a input object which has a field name as “type”.  I tried to create a entity in Domain model with attribute “type’. But got error message as “The name ‘type’ is a reserved word” .  How can I overcome this. Is there any workaround ?
asked
1 answers
4

You should be able to call the entity something else, then just use an Import Mapping to map “type” to your new entity, or an Export Mapping to map your entity to “type”.

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


Hope this helps.

answered