Skip to main content

How to deploy Data Kits with Gearset

How to deploy Data 360 DevOps Data Kits with their dependencies using Gearset

Written by Sravani Bhattiprolu

Note: If you are trying to deploy individual Data 360 metadata without a Data Kit, check out this document.

🎥 Watch the demo above to learn how to deploy Data 360 through Gearset.

Introduction

Data Kits in Salesforce Data 360 are a specialized packaging mechanism used to streamline the deployment and management of your Data 360 configuration across different environments (e.g. from sandbox to production). They ensure that all interdependent Data 360 components deploy reliably and in the correct order, separate from traditional Salesforce platform metadata.

Gearset simplifies the Data Kit deployment. With intuitive comparison and deployment workflows, users can effectively move complex Data 360 metadata configuration between development, testing, and production instances.

Prerequisites

Before deploying Data Kits, you will need to enable Data Cloud in both source and target orgs. You may also need to assign the Data Cloud Admin permission set to your deployment user.

ℹ️ When you create your Data Kit make sure to create it as a DevOps Data Kit.

Deploying Data Kits using Gearset pipelines

In your pipeline, click on the sandbox where you created the Data Kit. Create a new feature branch.

Input the details of your feature branch like the branch name and associated ticket/work item. Select Data Kit deployment method, and then click Build now.

Gearset lists the DevOps Data kits it can see in that org. Pick the one you need, and Gearset retrieves its components.

Click + Add data kit to package and then Next.

The comparison opens with the kit’s components already selected. Gearset traces their dependencies and adds those too, so give the list a moment to finish filling before you check it.

Check the selection, then click Next. Gearset’s problem analyzers flag anything still missing, so a gap surfaces as a suggested fix now rather than a failed deployment later. Add the suggested components and move on to the pre-deployment summary.

Gearset will display a summary of the commit. Make sure to add your issue tracking for Jira/Asana/Azure if you use it, and any notes you want to make about the commit. Click Commit changes.

Once you're returned to the main pipelines view, click Create pull request.

After you've added any descriptive details, open the Deployment steps tab, and add a post-deployment step to activate the Data Kit automatically after the deployment completes.

A note on the term "activation": the technically correct term for what Gearset does to your Data Kit automatically post-deployment is "publish" or "Data Kit deploy", but to avoid confusion between the act of making the deployment to the target org vs making the Data Kit components available in the target org, we have chosen to refer to this action as "activation". This matches the other automatic post deployment steps where we activate Flows or Agentforce agents. Thus when we refer to the action of deploying the data kit, we are specifically talking about a deployment in the traditional sense, where a package of changes is sent to a target org and applied.

After the step has been added, create your pull request. This will trigger the automatic validation of the Data Kit. If that passes validation (and all other checks on the pull request pass) then you will be able to promote the change, and the Data Kit activation will run automatically once that deployment completes.

The pull request automatically opens against the next environment, complete with the post-deployment step. This will allow you to deploy the same Data Kit uniformly throughout your pipeline.

Deploying Data Kits using Gearset from org to org

There are two ways to build a package with Data 360 components using Compare and Deploy.

Option 1: Select Data Kit and click Build Now. That would give you the option to select the Data kit and add the components to the package, similar to the above Pipeline workflow.

Selecting your Data Kit will tell Gearset to retrieve the components, which you will see on screen as a list.

Once you confirm that selection by clicking "+Add data kit to package" the chosen Data Kit and all of its components will be added to your comparison.

Click "Next" and the focused comparison will be created and pre-select your specified Data Kit, its components and dependencies.

After reviewing your package, click Next.

You might see some problem analyzer suggested fixes if you are missing any dependencies. Add the missing components to the deployment and go to the Pre-deployment Summary.

Gearset will display a summary of the deployment package. Make sure to add your issue tracking for Jira/Asana/Azure and any notes you want to make about the deployment.

Option 2: Select Standard, choose Default Data Cloud Comparison filter or open the metadata filter to manually select types.

In the metadata filter, there is a specific section for Data 360 metadata, where you will find a list of all Data kit related metadata types. Gearset will create a comparison for the requested filter, Data kit and all its components will need to be manually selected in the comparison to be deployed.

To deploy a Data Kit through the Metadata API, the metadata type you need to select in the filter is DevOps Data kit.

While DevOps Data Kit (Data package Kit Definition) represents the kit, it often doesn't automatically pull all its content (like Data streams, Data package kit objects etc). You need to retrieve the DataPackageKitDefinition along with the specific Data 360 metadata types that are contained within your Data Kit.

After making your selections, click Next. Check the problem analyzer suggested fixes and go to the pre-deployment summary.

"Activating" the Data Kit in a manual deployment

The technically correct term for what Gearset does to your Data Kit automatically post-deployment is "publish" or "Data Kit deploy", but to avoid confusion between the act of making the deployment to the target org vs making the Data Kit components available in the target org, we have chosen to refer to this action as "activation" to match the other automatic post deployment steps where we activate Flows or Agentforce agents. Thus when we refer to the action of deploying the data kit, we are specifically talking about a deployment in the traditional sense, where a package of changes is sent to a target org and applied.

On the summary of items to deploy page, the Activate Data Kits after deployment option is by default set as "enabled" to make sure that the components you are deploying are made available in the target org as soon as possible post-deployment.

Note: The above toggle can only be enabled on Deployment summary page when your target environment is a Salesforce org. It is an expected behavior to for this toggle to remain disabled if you're committing Data Kit to a Git branch, as activation post-deployment is possible only in the orgs.

If you choose to toggle this off, and later decide that you would like Gearset to activate your Data Kit you can locate the deployment in your deployment history and use the Activate deployed Data Kits button.

We will then display a message if this is successful:

"Activation has started. It may take a few minutes for all of your Data Kits to become active in the target org."

Did this answer your question?