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.
- 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.
- Choose Install for Admins Only, and click Install.

- 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.
- Go to Data Cloud Setup and click the Data Stream tab.
- Click New to create a data stream.
- 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.

- 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.
- Find your data kit under Custom Data Bundles.

- Click Next.
- Select the data space, review the fields in your data stream, and click Next.
- 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.
- Go to the Calculated Insights tab and click New.
- Select the data space in which you want to instantiate the CI, select Create from a Data Kit, and click Next.

- Select the Calculated Insight template from the data kit and click Next.
- 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.
- In Data Cloud, navigate to Data Cloud Setup.
- Under Developer Tools, click Data Kits.
- Open your data kit, and click Update.
- Select the data streams that changed with new mappings.
- Click Next.
- Select the fields and mappings that you want to include for the selected data stream.
- Click Save.
The updated package is now ready to re-install in your destination org.
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:
- Submitting the package to AgentExchange Security Review
- Drafting release notes and post-install instructions for the package
-
Publishing the app on AgentExchange
Happy packaging, and we hope to see you on AgentExchange!
Resources
