Skip to main content
Build the future with Agentforce at TDX in San Francisco or on Salesforce+ on March 5–6. Register now.

Set Up a Custom Data Cloud Playground

Learning Objectives

After completing this unit, you’ll be able to:

  • Sign up for a custom Data Cloud Playground.
  • Configure the playground for use with this badge.
Note

We highly recommend that you have a good level of knowledge of flows and Data Cloud before you work on this badge. To learn about flows, complete the Build Flows with Flow Builder trail. To learn about Data Cloud, complete the Unlock Your Data with Data Cloud trailmix.

Data Cloud connects and harmonizes all your data in one place. This includes external data such as your company website, mobile app, end-user products, and internal data from your Salesforce org.

But that data, even if it’s been cleaned, mapped, and harmonized, isn’t useful if you can’t do anything with it. Fortunately, the Salesforce declarative automation tool, Flow Builder, can access your Data Cloud data. This access gives you the ability to create powerful interactive or triggered automation that uses that data. You can even trigger a flow from changes made to the data in Data Cloud.

Get Ready to Get Hands-On

Before you start creating flows that interact with Data Cloud, complete the following three steps to set up your playground.

Sign Up for a Custom Playground with Data Cloud

To complete this module, you need a custom playground that contains Data Cloud and our sample data. If you haven’t already clicked the Create Playground button at the top of this page, do that now, and follow the steps to create a custom playground and connect it to Trailhead.

Note

This custom playground is designed to work with the challenges in this badge, and may not work for other badges. Always check that you’re using the playground or special Developer Edition org that we recommend.

Create Data Streams from a Data Kit

The custom playground has a lot of configuration already done for you, but there’s a few steps you need to complete before you can proceed. First, let’s create the data streams and their mappings.

  1. If you haven’t already launched your Data Cloud playground, do that now.
  2. Click the App Launcher “”, type data, then click the Data Cloud app.
  3. Click the Data Streams tab.
  4. Click New.
  5. Click Salesforce CRM.

The Salesforce CRM button reads: Import objects from Salesforce CRM.

  1. Click Next.
  2. Click the DataCloudFlows Custom Data Bundle.
  3. Click Next.
    Notice that the default Data Space is pre-selected and all the fields included in the bundle are listed.
  4. Leave the current selections and click Next.
  5. Click Deploy.

You may notice that all of your dev org’s Data Cloud data comes from a Salesforce CRM source, connected to the same org. Unfortunately, we can’t set up external data sources for you. Instead, we created Salesforce objects that simulate external objects, with data streams and mappings to make these data structures appear as data model objects (DMOs) in Data Cloud. The steps in these exercises work with data streaming from truly external databases as well.

Create a Calculated Insight

Next, create a calculated insight that counts the records in one of the org’s external objects.

  1. Click the Calculated Insights tab.
  2. Click New.
  3. Select Create from a Data Kit and click Next.
  4. Select Number of Abandoned Carts and click Next.
  5. Click Activate.
  6. For Schedule, select Not Scheduled, and click Enable.
  7. On the new Number of Abandoned Carts calculated insight page, click , then click Publish Now.
    You may have to refresh the page to see the Publish Now option.

The Publish Now option on a calculated insight page.

Your special Data Cloud org is now ready to go! Before we start building flows in this org, let’s review some Data Cloud concepts that are key to working with flows.

How Flows Interact with Data Cloud

Let’s talk about some important parts of Data Cloud, what they do, and how they interact with flows.

Data Lake Objects

Data lake objects (DLOs) are storage containers for the raw data that data streams bring into Data Cloud. In these objects, the data remains in unaltered form but can be referenced by the rest of Data Cloud. Flows can’t access data in DLOs.

Data Model Objects

After Data Cloud maps, harmonizes, or transforms your DLO data, it makes the data available through data model objects (DMOs). In other words, data in DMOs has gone through all the processes that you’ve defined to make that data useful. Most of the data that’s accessible in flows is found in DMOs. Here are some examples of what a DMO might contain.

  • Data from a Salesforce org
  • Data from an external database
  • Transformed, filtered, or aggregated data
  • Formula fields based on source data
  • Unified identity information compiled from multiple sources

Calculated Insights and Calculated Insight Objects

Calculated insights consist of a SQL (Structured Query Language) query and the complex metrics that the query returns. When you activate a calculated insight, Data Cloud creates a calculated insight object (CIO) to store the values returned by the SQL query. Data Cloud runs the query on a schedule and updates the CIO’s records when the query’s results change. For most Data Cloud purposes, the CIO isn’t very visible. But when you access calculated insight results with Flow Builder, you interact with the CIO just like you do with any other object.

“Data Cloud diagram corresponding to the preceding descriptions. Flows can access the data in DMOs and calculated insights.”

Note

For more information on creating calculated insights, check out the Enhance Data in Data Cloud trail in Trailhead.

Resources

Salesforce 도움말에서 Trailhead 피드백을 공유하세요.

Trailhead에 관한 여러분의 의견에 귀 기울이겠습니다. 이제 Salesforce 도움말 사이트에서 언제든지 새로운 피드백 양식을 작성할 수 있습니다.

자세히 알아보기 의견 공유하기