Selecting and deploying a custom field
Michael Krumwiede avatar
Written by Michael Krumwiede
Updated over a week ago

When deploying this single custom field, there are two scenarios to consider: (1) the object for the field is new to the target; or (2) it already exists.

The object is new to the target

If it's a new custom object (i.e. it only exists in the source org), Gearset will automatically select all custom fields ready for deployment. However, you are able to select which custom fields are included within the custom object
​

In this example, there is a new custom object with a few fields, when it is selected for deployment, all components are also selected, one is not ready for deployment, so I open the components menu and deselect that field.
Within Salesforce, a custom field must always belong to a custom object. Therefore, the components are not able to be selected without also deploying the object.
​

The object exists in the target

If the custom object exists in both the source and target, you'll have the option to choose which custom fields you want to deploy.

A custom object that exists in both source and target will look like this:

Note that NewObject shows metadata for both source and target, so the custom fields can be selected for deployment.

To deploy the ID custom field from the source to the target, select the field from the New items tab:

Did this answer your question?