Adminstrator · Deployment · Salesforce

How to deploy Record Type Custom Picklist Field Value to another org?

When you deploy record type from one org to another org(sandbox to sandbox OR sandbox to production) – we may see record type picklist field values are not migrated through deployment.

Sandbox Picklist Value: (Value assigned manually by developer)

screen-shot-2016-09-28-at-9-34-18-pm

After deployed to PROD:

Screen Shot 2016-09-28 at 9.34.31 PM.png

Used ANT Script for deployment :

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>AccountAddress__c.Account_With_City</members>
        <name>ReportType</name>
    </types> 
    <version>36.0</version>
</Package>

 

Expected Result: Selected value should be “Sathish”,”Periyasamy”.

Solution :

Add picklist field part of Package.xml

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types>
        <members>AccountAddress__c.Test_List__c</members>
        <name>CustomField</name>
    </types>
    <types>
        <members>AccountAddress__c.Account_With_City</members>
        <name>ReportType</name>
    </types>
    <version>36.0</version>
</Package>

This way field picklist values are part of record type picklist field.

 

One thought on “How to deploy Record Type Custom Picklist Field Value to another org?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s