Skip to main content
Using data deployment templates for repeatable data deployments

Save and re-use your data deployment configuration

Tom Smith avatar
Written by Tom Smith
Updated over a week ago

Gearset's data deployment templates let you save and re-use the configuration from a data deployment. This saves you time when setting up a new data deployment and gives you confidence that the same data configuration is used every time.

What benefits do I get from data deployment templates?

Data deployment templates bring the usual benefits of automating a process:

  • It's harder to make mistakes through human error

  • It saves you time by letting you specify the configuration once and re-use it

  • It gives you confidence that the deployment will be the same every time

This means that you can spend less time deploying data, and focus on testing and releasing new features.

Creating a data deployment template

The first step is to create a data template from a data deployment.ย 

Once you've configured a data deployment, you're able to save the configuration for that deployment as a new template by selecting Save template and friendly name...

This option is becomes available on the last stage of your data deployment configuration (just before you select DEPLOY DATA to execute the deployment).

After you click on Save template and friendly name..., below pop-up window will show up allowing you to give name to your template (top field), and give name to your deployment (bottom field):

You can also save a template from a completed deployment. Creating a template from a deployment configuration will save:

Using a data deployment template

When you configure a new data deployment by selecting CONFIGURE DEPLOYMENT, on the next page you can view a list of templates that you or team members have created.

Selecting one of those templates will apply a previously saved (template) configuration to your new data deployment.

Once you've applied the template, you can go through the rest of the deployment configuration and deploy your data.

If you're not entirely happy with the configuration from the template, then you can still make changes to the deployment (but those changes won't be saved back to the selected template).

Limitations of data deployment templates

In some cases, objects or fields from the template may not exist. This could happen if:

  • you created a template when deploying between one pair of orgs, and you're now using the same template on a different pair of orgs.

  • Or when a field in the template used as an external ID may have been deleted from the target org.

When Gearset can't use the full configuration from the template, it will apply as much of the template's configuration as possible. What you need to know however is that:

  • Objects or fields in the template that don't exist in the target org won't be included.

  • If external ID fields in the template don't exist, Gearset will default to the same field it would use if you weren't using a template.

  • If the template was created with don't deploy set as a deployment method against related objects, this will switch to create new records if don't deploy is not a valid option for the chosen orgs.

  • Validation rules won't be included in the template either.

Managing data deployment templates

You can rename or delete a template that you've created by clicking the cog icon next to the templates drop-down on the Configure data deployment page.

You'll also see templates created by other members of your team, but you won't be able to modify them.
โ€‹
It's because only the team owner on your Gearset can can rename or delete data deployment template. For more information, fee free to check our article on:
โ€‹Team ownership and management

Can data deployment templates be edited?

Currently, existing template configurations cannot be updated. So if you'd like to edit one of your data deployment templates, the best way to go about it is to create a new template when you're configuring a new data deployment.

Do you have any other questions we haven't covered in this article? Feel free to let us know in the in-app chat.

Did this answer your question?