---
schema_version: "1"
id: 4550ba60d5cc34ab6c967d1d3217a87da9e7ef306157926153356ed0d1878f49
title: Create a Contact for an Existing Account (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_create_a_contact_for_an_existing_account.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_create_a_contact_for_an_existing_account.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9e7175e8cb245ec81b8583b120a450822cdb6b4d97565062e019dea81d0f1583
description: 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.
products:
  - Omnistudio
release: "264"
---
# Create a Contact for an Existing Account (Managed Package)

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.

![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).

The input JSON for this Data Mapper Load contains the Account Id and the Contact name, for example:

```
{
    "AccountId": "0016100001BKL4uAAH",
    "Name": {
        "First": "Jane",
        "Last": "Doe"
    }
}
```

To create this example Data Mapper Load:

1. Navigate to the Data Mapper tab and click **New**. The **Create: Data Mapper Interface** dialog is displayed.
2. Enter settings as follows and click **Save**:
    
    - **Data Mapper Interface Name**: A descriptive name of your choice
    - **Interface Type**: Load
    - **Input Type**: JSON
    - **Output Type**: SObject
3. On the Objects tab, click **Add Object** and choose **Account**.
4. Click **Add Object** again and choose **Contact**.
5. Click Add Link and enter settings as follows:
    
    - **Domain Object Field**: AccountId
    - **Linked Object**: 1 - Account
    - **Linked Object Field** (after the period): Id
6. Go to the Fields tab and the Account subtab. Click the **+** icon and add the following mapping:
    
    - **Input JSON Path**: AccountId
    - **Domain Object Field**: Id
    - **Upsert Key**: checked
7. Go to the Contact subtab. Add the following name mappings:
    
    | Input JSON Path | Domain Object Field |
    | --- | --- |
    | Name:First | FirstName |
    | Name:Last | LastName |
    
    The AccountId mapping is already present.
8. On the Preview tab, test the Data Mapper using input with the same structure as the sample input above, substituting an Account Id from your org and a name of your choice.