The Multi-Entity Reference IE Base Type is used to hold references to multiple Entities. The referenced Entities can be of different Types. On a Request, for example, it’s also possible to add multiple individual Entity Reference IE Base Type Information Elements instead.
Properties
| Property | Type | Description |
|---|---|---|
| items | List of references to Entities | Holds a list of references to Entities. The references are not Information Elements themselves, just ordinary JSON data structures. |
“items” element properties
“referenceNamespace”* cannot be omitted. If omitted, the element will be discarded from the “items” list.
| Property | Type | Description |
|---|---|---|
| referenceNamespace | String (Required) | The Namespace of the referenced Entity, e.g. “dk.realequity.case.sale”. |
| referenceId | Guid (Required) | The ID of the referenced Entity. |
Example
The properties “namespace” and “parentId” are inherited from the Data Node Type. Here, they’re used to define the created Data Node as a Multi-Entity Reference IE, and to make it a child of a Request.
{
"namespace": "dk.realequity.ie.multientityref.default",
"parentId": "7ca562de-13aa-4736-9848-246c66952cf4",
"items": [
{
"referenceNamespace": "dk.realequity.case.sale",
"referenceId": "ae41254f-c591-4412-9a1e-fabba51cf67c"
},
{
"referenceNamespace": "dk.realequity.case.sale",
"referenceId": "bb895e85-8a9e-44e0-a5b0-2ad4204ae88c"
}
]
}