---
schema_version: "1"
id: 6dee9cdcb67287846e221b66ee8ba20904fd0616c38c60dd032db37e6f458693
title: Multiple Related Object Loads (Link Mappings) (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_multiple_related_object_loadslink_mappings.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_multiple_related_object_loadslink_mappings.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 8ead0c79b238ef1547b3459c60ab05597b62fc096c16b4a82e2831c07d3b6479
description: For the managed package runtime, when loading data into a sequence of objects, you can propagate data directly from one object to another related object. For example, you can use an Omnistudio Data Mapper Load to support an Omniscript that creates an Account and a Contact for the Account.
products:
  - Omnistudio
release: "264"
---
# Multiple Related Object Loads (Link Mappings) (Managed Package)

For the managed package runtime, when loading data into a sequence of objects, you can propagate data directly from one object to another related object. For example, you can use an Omnistudio Data Mapper Load to support an Omniscript that creates an Account and a Contact for the Account.

To link the Account to its Contact, the Data Mapper must perform the following sequence of operations:

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

1. Create the Account.
2. Create the Contact.
3. Link the Account and Contact records by populating the Contact record’s AccountId field with the Id of the Account record.

To handle this type of relationship, link the objects in the Data Mapper Designer.

1. On the Objects tab, navigate to the source object (Contact in the preceding example) and click **Add Link**.
2. For each field you want to link, configure these settings:
    - **Domain Object Field** — The source field from this object (AccountId in the preceding example).
3. **Linked Object** — Another object in the sequence (Account in the preceding example).
    - **Linked Field** — The target field in the linked object (Id in the preceding example).

![Example](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_example.png)

Example To create a Case with a new Account and Contact associated, link the objects as shown in the following figure. The Contact is associated with the account by AccountId, and the case is associated with the contact by ContactId.

![Example Account to Contact mapping](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/os_dataraptor_load_multiple_link_mappings.png)

For an example that uses link mapping, see [Create a Contact for an Existing Account (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_contact_for_an_existing_account.htm&release=264.0.0&type=5 "For the managed package runtime, the following example of an Omnistudio Data Mapper Load creates a record in the Salesforce Contact object. A link to an Account object record with a specific Id ensures that the new Contact is related to that Account.").