IsUnique
Use the isUnique feature to identify an attribute of an Integration Object as unique in the Backoffice, using ImpEx, or when loading an Integration Object using the API. For any item in the Type system that does not have a unique key, applying isUnique to one or more attributes of that item creates a unique key for identification.
isUnique indicates that an XML field in the generated EDMX schema is required and must be unique to generate the integrationKey later. An example of an item in the Type system that does not have a unique key is StockLevel. When creating a StockLevel Integration Object, enable isUnique for one or more of its attributes to create a unique key for identification. When using the Integration API, you can then use the key value to query the data.
- The Unique column value is set to true, defining an integrationObjectItemAttribute as unique.
- The corresponding attribute in the Type system is defined as unique.
| Type System IsUnique | integrationObjectItemAttribute IsUnique | Generated EDMX Schema |
|---|---|---|
| null/false | null/false | None |
| anything | true | isUnique="true" Nullable="false" |
| true | anything | isUnique="true" Nullable="false" |
Limitations
If the Type system has unique = "true", you cannot override it at the Integration Object level by uploading an ImpEx script with an integrationObjectItemAttribute with unique = "false". In such a case, the debug logger displays a warning that describes the limitation.