---
schema_version: "1"
id: 5f4e8122c1d2da962a4df2c0ec4b9d13cc12382792b8ad6b2ee1814af412222e
title: Add and Modify Account Attributes (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_add_and_modify_account_attributes.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_and_modify_account_attributes.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 43e8c5732c56058dd247d5f72bf98e63d357f23b3ce8058e48db563bad54ee5c
description: For the managed package runtime, an Omnistudio Data Mapper Load adds or modifies Profile Attributes for the account with the specified Id.
products:
  - Omnistudio
release: "264"
---
# Add and Modify Account Attributes (Managed Package)

For the managed package runtime, an Omnistudio Data Mapper Load adds or modifies Profile Attributes for the account with the specified Id.

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

Before you create this Data Mapper Load, you must create the Profile Attributes. Follow the steps at [Create New Profile Attribute Categories (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_new_profile_attribute_categories.htm&release=264.0.0&type=5 "For the managed package runtime, the type of attribute is defined at the Attribute Category level. Attributes Categories must created before you can add attributes to the category. Typically, Profile Attributes are used with Vlocity Intelligence and can be automatically assigned (see ).") and [Create New Profile Attributes (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_new_profile_attributes.htm&release=264.0.0&type=5 "For the managed package runtime, attributes act like tags that provide more information about the entity in the profile. Typically, Profile Attributes are used with Vlocity Intelligence and can use attribute assignment rules. Product attributes are used with Policy Product Management.") to create these objects:

- An Attribute Category with:
    
    - **Name** — AccountLevel
    - **UI Control Type** — **On-Off**
    - **Applicable Type** — **Account**
    - **Applicable Subtype** — **Profile Attribute**
- An Attribute Category with:
    
    - **Name** — AccountStrength
    - **UI Control Type** — **1-5 Scale**
    - **Applicable Type** — **Account**
    - **Applicable Subtype** — **Profile Attribute**
- An Attribute in the AccountLevel Attribute Category with a **Name** and **Code** of GoldStarAcct
- An Attribute in the AccountStrength Attribute Category with a **Name** and **Code** of NumberOfStars

The input JSON for this Data Mapper Load contains the Account Id and values for the two Profile Attributes, for example:

```
{
    "Id": "0014N00001goyP8QAI",
    "GoldStarAcct": "On",
    "NumberOfStars": 5
}
```

To create this example Data Mapper Load:

1. Navigate to the **Omnistudio 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. Go to the Fields tab and the Account subtab. Click the **+** icon and add the following mappings:
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <colgroup>
              <col>
              <col>
              <col>
            </colgroup>
            <thead class="slds-text-title_caps ">
              <tr class="">
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d354359e302">
                  <p style="margin-bottom:0;">Input JSON Path</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d354359e308">
                  <p style="margin-bottom:0;">Domain Object Field</p>
                </th>
                <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d354359e314">
                  <p style="margin-bottom:0;">Other Settings</p>
                </th>
              </tr>
            </thead>
            <tbody>
              <tr class="">
                <td data-label="Input JSON Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e302 ">
                  <p style="margin-bottom:0;">Id</p>
                </td>

                <td data-label="Domain Object Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e308 ">
                  <p style="margin-bottom:0;">Id</p>
                </td>

                <td data-label="Other Settings" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e314 ">
                  <p style="margin-bottom:0;">Upsert Key</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Input JSON Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e302 ">
                  <p style="margin-bottom:0;">GoldStarAcct</p>
                </td>

                <td data-label="Domain Object Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e308 ">
                  <p style="margin-bottom:0;">@GoldStarAcct</p>
                </td>

                <td data-label="Other Settings" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e314 ">
                  <p style="margin-bottom:0;">Output Data Type: String</p>
                </td>

              </tr>
              <tr class="">
                <td data-label="Input JSON Path" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e302 ">
                  <p style="margin-bottom:0;">NumberOfStars</p>
                </td>

                <td data-label="Domain Object Field" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e308 ">
                  <p style="margin-bottom:0;">@NumberOfStars</p>
                </td>

                <td data-label="Other Settings" class="slds-cell-wrap" style="vertical-align:top;" headers="d354359e314 ">
                  <p style="margin-bottom:0;">Output Data Type: Integer</p>
                </td>

              </tr>
            </tbody>
          </table>
5. 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 Profile Attribute values of your choice.
6. After you create this example, you can use a Data Mapper Extract to view the data. See [Extract Account Attribute Data (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extract_account_attribute_data.htm&release=264.0.0&type=5 "For the managed package runtime, an Omnistudio Data Mapper accepts an Account Id and returns Profile Attribute values for that Account.").

- **[Create New Profile Attributes (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_new_profile_attributes.htm&release=264.0.0&type=5)**  
    For the managed package runtime, attributes act like tags that provide more information about the entity in the profile. Typically, Profile Attributes are used with Vlocity Intelligence and can use attribute assignment rules. Product attributes are used with Policy Product Management.
- **[Create New Profile Attribute Categories (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_new_profile_attribute_categories.htm&release=264.0.0&type=5)**  
    For the managed package runtime, the type of attribute is defined at the Attribute Category level. Attributes Categories must created before you can add attributes to the category. Typically, Profile Attributes are used with Vlocity Intelligence and can be automatically assigned (see ).