Skip to main content

Add and Map a Formula Field

Map Your Field to a Data Model Object

Data Cloud has a lot of cool capabilities (such as identity resolution, segmentation, and creating calculated insights). And to use these, you first need to map your ingested data to data model objects (DMOs). When using Salesforce standard data bundles like we’re doing in this project, some standard data objects are pre-mapped for you. Since you added a new custom formula field (and often businesses have other standard and custom objects in their data sources), these fields need to be manually mapped to the Customer 360 Data Model. Map those unmapped fields!

  1. Click the Data Streams tab and then select the data stream, Lead_Home.
  2. From the Data Mapping section, click Review.

On one side of the screen are the (1) Data Lake Objects (DLOs) and the object you selected, in this case, Lead_Home. On the other side, are the searchable (2) DMOs (called Data Model entities in-app). To search for a field within a DLO use the DLO search bar (3). 

DLO mapping screen for the Lead data stream

We need to create a new DMO field and then map it to our new formula field.

  1. Under Data Model entities, scroll to the Lead section and under Unmapped, click Add New Field. (You may need to scroll down to the Lead section to find the unmapped category!)

Add New Field link.

  1. Name the Field, Is US Based and select Text as the Data Type.
  2. Click Save.
  3. Now under the Data Lake Object, Lead_Home, search for the unmapped field Is US Based.
  4. Select Is US Based until highlighted and then under Data Model entities, scroll to the Lead section and under Unmapped select the newly created Is US Based custom field.
  5. After a line is drawn to connect the two fields, click Save. 

Now let’s map a few other fields from the Lead_Home DLO that haven’t been mapped yet.

  1. Under the Lead_Home DLO search box, search for the field Industry and click it.
  2. Under Data Model entities, search for Industry. You’ll find it in the Lead section.
  3. Map the two together by clicking on the DLO, then on the DMO.
  4. After a line is drawn to connect the two fields, click Save.
  5. Now locate Phone under the Lead_Home search box. Notice it is already mapped to Telephone Number. We also need to map it to Formatted E164 Phone Number.
  6. Click on Phone to select it and then locate Formatted E164 Phone Number from the Unmapped section of Contact Point Phone.
  7. Select Formatted E164 Phone Number.
  8. After a line is drawn to connect the two fields, click Save & Close.

Prep for Identity Resolution

To unify profiles with Identity Resolution, some additional fields are required to be mapped. Map those fields.

  1. ​From Data Streams, select the Contact_Home data stream.
  2. Under Data Mapping, click Review.
  3. Following similar steps to above, map Business Phone from the Contact_Home DLO to Formatted E164 Phone Number under the Contact Point Phone entity.
  4. Click Save & Close.

Follow these steps for the Account data stream.

  1. From Data Streams go to the Account_Home data stream.
  2. Map Account ID to Party under the Contact Point Address entity.
  3. Map Account ID to Party under the Contact Point Phone entity.
  4. Map Account Phone to Formatted E164 Phone Number under the Contact Point Phone entity.
  5. Once done, click Save & Close.

Verify Your Work

Verify your work by clicking on the button in the challenge section below. This will check to see that you’ve created a custom DMO field, mapped it to your new formula field, and mapped the Industry field to the correct DMO. 

What’s Next?

Whether you want to unify data, create insights, expand AI models, visualize all your data, or just act on that data anywhere you dream up—creating a data stream is step one. And with this project complete, your journey with Data Cloud can truly begin. So what’s next in your journey? 

  • View Your Data. With Data Explorer, you can view data lake objects (DLOs), data models objects (DMOs), or calculated insight objects (CIOs).
  • Learn More. Visit the Help page, Data Cloud Resources, to find Data Cloud videos, Trailhead modules, blogs, and more.
  • Explore Data Cloud. Use the Developer org to explore the Data Cloud interface and product functionality.

Continue practicing Data Cloud skills in the next project Quick Start: Create an Identity Resolution Ruleset.

Resources

在 Salesforce 帮助中分享 Trailhead 反馈

我们很想听听您使用 Trailhead 的经验——您现在可以随时从 Salesforce 帮助网站访问新的反馈表单。

了解更多 继续分享反馈