Creating Nested Object¶
Nested object is a set of nested attributes that is added to a complex attribute. The complex attribute is displayed in the record card as a catalog of nested attributes.
Creating New Object¶
To create a nested object:
Make sure that draft mode is enabled and a draft is selected.
Switch to the “Nested objects” tab in the “Data Model” section.
From the menu that appears above the button, select “Nested object”.
The action will create a nested object. It will open on the right side of the screen (in the general area of the section). The nested object contains the “Settings” and “Attributes” tabs.
Fill in the required fields in the “Settings” tab:
“Name”. System name of the nested object. The name must begin with a letter and can only contain Latin letters, numbers, the symbols “-“, “_”. Cannot contain spaces. Not editable after saving.
“Display name”. Name of the nested object that will be displayed to all users. The display name can consist of both Latin and Cyrillic letters, as well as spaces. It is recommended to use a human-identifiable name. Can be edited after saving.
“Description”. Any additional information about the object.
“Custom properties”. List of parameters (the “name” – “value” pair) that contain additional text information. Parameters can be referenced by custom extensions, and parameters can also contain non-standard information from external systems.
Switch to the “Attributes” tab and create at least 1 attribute. The added attributes will represent the contents of the nested object.
Save the changes. Click “Save” in the upper-right corner of the screen. If some errors are detected during saving, a corresponding message will be displayed on the screen.
Publish the draft when all necessary changes are made.
Attributes of nested objects have the same characteristics as attributes of entities/lookup entities with the only exception that attributes of nested objects do not use the “Displayable” and “Main displayable” properties.
To copy a nested object:
From the menu that appears above the button, select “Copy from…”.
This will open a pop-up with a list of existing nested objects.
Select the required one and click “Continue” in the lower right corner of the window.
Enter a name for the new object, make additional changes if necessary, and click “Save” in the upper right corner.
Copying includes all simple, complex, and array-attributes
To delete a nested object:
Make sure that the “Nested objects” tab is active in the “Data Model” section.
Make sure that the nested object is not used in the data model through complex attributes. To do this, check the “Attributes” tab in entities/lookup entities.
If the nested object is in use, change it in a complex attribute, or delete the complex attribute.
Go to the “Nested objects” tab of the “Data model” section.
Select the required object from the list.
Click the “Delete” button located in the upper right corner of the screen and confirm the action.
Figure 1. Creating nested object
Single nested object can be used in multiple complex attributes of one or more entities at once. Example: The nested “Contacts” object will contain the following attributes: phone number, email, address, etc.
If a nested object has been edited, the changes will be applied to every complex attribute where the object is used.
Nested object can contain complex attributes that refer to other nested objects. A nested object cannot refer to itself.
Nested object can only be deleted if it’s not used in the data model.