Create a GUID Field
Add a GUID field to all objects used during your deployment to ensure unique identification of records across environments.
-
From Setup, in the Quick Find box, find and select Object Manager.
-
Select an object.
-
Click Fields & Relationships.
-
Click New.
-
Select Text for the data type.
-
Enter a field label and field name.
-
Enter a length.
We recommend 255 to avoid any errors related to ID length.
-
Select Unique and External ID.
Selecting these attributes ensures that every record gets a unique ID.
-
Click Next.
-
Select the appropriate profiles for field access, optionally add the field to page layouts, and then click Save.
-
Repeat this process for all Salesforce objects related to your deployment plan.
Alternatively, you can create GUID fields by using the Metadata API. For more information, see Understanding Metadata API and the Custom Field metadata type.