Complete code sample for one-to-ones
The following code snippets define a new entity and a new one-to-one referencing that
entity. In this example, the Activity
resource has a
activityLegalInfo_Ext
inline object whose fields map to the
ActivityLegalInfo_Ext
entity.
Data model extension
File name: Activity.etx
File name: ActivityLegalInfo_Ext.eti
Schema extension file
File name: common_ext-1.0.schema.json
Mapping extension file
File name: common_ext-1.0.mapping.json
Updater extension file
File name: common_ext-1.0.updater.json
Resource extension (to reserve IDs and extend checksums)
File name: ActivityExtResource.gs