Skip to main content
Slack의 Trailblazer Community가 이제 오픈 베타를 시작했습니다. 참여하고 실시간으로 소통하세요. Slack에서 함께하세요

Install and Test Your Data 360 Package

Learning Objectives

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

  • Install a Data 360 managed package in a target org.
  • Deploy data streams and calculated insights from a data kit.
  • Apply best practices for updating data kits and managing deployment limitations.

Test Your Package

The Get Cloudy Consulting team has finished developing the features for their Data 360 app but want to verify the completeness of its packaged data kit. To test the package, Get Cloudy Consulting creates a non-namespaced scratch org that includes Data 360 features.

sf org create scratch -f config/project-scratch-def.json --no-namespace -a testingOrg -w 10 -y 10

To test a Data 360 app, or if you’re a consumer of a Data 360 app, use these steps to install the package and the data kit in your test org.

Install a Package with a Data Kit

Before they can test anything, the Get Cloudy team now needs to install the Data 360 package containing their data kit onto their test scratch org.

Most tasks in Data 360 require a user to have the Data Cloud Architect permission set. If you’re unable to complete these steps, reach out to your Salesforce admin for assistance.  Don’t try to follow these steps in your Trailhead Playground. Data 360 isn’t available in a typical Trailhead Playground.

Here’s a review of the steps to install a package with a data kit.

  1. From a separate tab or new window in the Data 360 org you wish to install the package with the data kit, enter the provided URL.
  2. Choose Install for Admins Only, and click Install. 

The Package installation dialog displays three options: Install for Admins Only (selected), Install for All Users, and Install for Specific Profiles.

  1. Click Done when the installation completes.

Deploy the Components of the Data Kit

After you install the package and its data kit, you’re ready to deploy the features from the data kit into your org. So, next, you deploy the data streams and calculate insights into this org.

There are a few ways to deploy the components of a data kit in your org. One way is through the user interface, which is what we use in this module. But you might not always interact with Data 360 and data kits through the user interface—maybe you’re interacting with it through the command line or scripts. In this case, you can install a data kit programmatically instead. You can do so using the Salesforce command line interface, which you can learn more about in the Data 360 Developer Guide.

Here are the steps for deploying data streams and calculated insights from a data kit.

Deploy Data Streams from Data Kits

While logged in to the org where you installed the data kit, follow these steps.

  1. Go to Data Cloud Setup and click the Data Stream tab.
  2. Click New to create a data stream.
  3. Select the same data source type corresponding to the data streams that were added to the data kit, for example, Salesforce CRM, and click Next. Otherwise, select Installed Data Kits & Packages and click Next.

New Data Stream page with Salesforce CRM selected as the source for the data stream to unify data.

  1. If the data source is Salesforce CRM, select the appropriate Salesforce org. For other data source types, select the appropriate connection against which you want to create the data stream.
  2. Find your data kit under Custom Data Bundles.

Create new data stream from data bundle.

  1. Click Next.
  2. Select the data space, review the fields in your data stream, and click Next.
  3. Review details and click Deploy.

Your new data stream is created with the same model and mappings found in your dev environment. 

Deploy a Calculated Insight from a Data Kit

If your data kit contains calculated insights, you can deploy those insights from the data kit.

  1. Go to the Calculated Insights tab and click New.
  2. Select the data space in which you want to instantiate the CI, select Create from a Data Kit, and click Next.

Select Create from a data kit.

  1. Select the Calculated Insight template from the data kit and click Next.
  2. Click Activate.

Update a Data Kit

The Get Cloudy team decides that the data kit needs some additional data from Sales. They add a new mapping to a Sales data stream in their source org. How should Get Cloudy Consulting get its changes to reflect in its data kit? Get Cloudy Consulting needs to update its data kit with its changes and create a new package version.

Since you’re using source-based development, you create a new Data Cloud scratch org for this update. Once the org is created and Data 360 initialized, you can deploy your package source code to the org. In your scratch org, update the content within your data kit for Salesforce CRM data streams by following these steps.

  1. In Data Cloud, navigate to Data Cloud Setup.
  2. Under Developer Tools, click Data Kits.
  3. Open your data kit, and click Update.
  4. Select the data streams that changed with new mappings.
  5. Click Next.
  6. Select the fields and mappings that you want to include for the selected data stream.
  7. Click Save.

The updated package is now ready to re-install in your destination org. 

Note

Updating a data kit functionality is only available for CRM data streams. 

Tips and Best Practices

As you build data kits, it’s helpful to review these troubleshooting tips and best practices. 

  • Confirm your environment setup if you get an error that your package can’t be installed.
  • Create a managed package version if you need to upgrade or make updates to a package regularly. To reflect the latest updates, the new package version must be installed in the destination org.
  • CRM and Commerce data kits can be packaged and reused multiple times in an org and can be mapped to multiple orgs.
  • A data kit component gets deployed only if the prerequisite components are available and references are resolved. For example, a calculated insight in a data kit referencing DMO does not get deployed if DMO is not available during CI creation.
  • When new data model relationships are added, make sure to include the relationships in the package for the new version.

Distribute a Data 360 App

After Get Cloudy is satisfied with its package, the consultancy can prepare to distribute it to others as a Data 360 app on AgentExchange.

When Get Cloudy is ready to distribute its package version, it is promoted to a released version.

Congrats! You followed the Get Cloudy team as they created, tested, and promoted their Data 360 package. There are a few more steps in the journey to publishing the app on AgentExchange. These steps include:

Happy packaging, and we hope to see you on AgentExchange!

Resources

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

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

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