Making properties read only
A read-only property is a property whose value cannot be set or modified through Cloud API. This can occur for the following reasons:
- The property is read-only in the base application.
- The property is settable in the base application, but there is a business requirement that it cannot be modified through Cloud API.
To set a property as read-only:
- In the schema file, set the
readOnly
property to true - In the mapping file, specify a mapper as normal.
- Omit the property from the updater file.
For example, suppose the CustomEntity_Ext
entity has an
ExpirationDate
field. The corresponding resource property is
read-only. The property declaration would be:
The mapping declaration would be:
There would be no updater declaration.