# Multi Entity Reference Information Element

**URL:** <https://developerforum.realequity.dk/t/multi-entity-reference-information-element/243>\
**Category:** Information Elements\
**Tags:** docs, information-elements\
**Created:** [June 16, 2022, 12:33pm UTC](https://developerforum.realequity.dk/t/multi-entity-reference-information-element/243 "2022-06-16T12:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asbjoern](https://dub1.discourse-cdn.com/flex013/user_avatar/developerforum.realequity.dk/asbjoern/32/17_2.png) [@asbjoern](https://developerforum.realequity.dk/u/asbjoern)\
**Post date:** [June 16, 2022, 12:33pm UTC](https://developerforum.realequity.dk/t/multi-entity-reference-information-element/243/1 "2022-06-16T12:33:30Z")

</div>

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](https://docs.realequity.dk/docs/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.

```auto
{
    "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"
        }
    ]
}

```

---

<div class="post-metadata">

**Author:** ![asbjoern](https://dub1.discourse-cdn.com/flex013/user_avatar/developerforum.realequity.dk/asbjoern/32/17_2.png) [@asbjoern](https://developerforum.realequity.dk/u/asbjoern)\
**Post date:** [June 16, 2022, 12:33pm UTC](https://developerforum.realequity.dk/t/multi-entity-reference-information-element/243/2 "2022-06-16T12:33:35Z")

</div>

Closed on June 16, 2022, 12:33pm UTC


