function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
yuliayulia 

How to deploy record type (record type and "Picklists Available for Editing") in eclipse

i want to asked about deploy record type in salesforce.

For example : i created new record type --> RTSample. In "Picklists Available For Editing", i edited Salutation Field (Mr. and Mrs. moved to Selected Values).

 

After that,i tried to deploy to other instance. In other instance, there are RTSample Record Type but in "Picklists Available For Editing", all value are in "Available Value"

 

my question --> How to deploy Record type with "Picklists Available For Editing" ???

sebcossebcos

Hi Yulia,

this should be possible by using the Force.com IDE.

I have tried this out and it works.

In the metadata retrieved using the IDE you should see something like this in your object:

 

...<recordTypes>
        <fullName>rt1</fullName>
        <active>true</active>
        <label>rt1</label>
        <picklistValues>
            <picklist>pick1__c</picklist>
            <values>
                <fullName>value1</fullName>
                <default>false</default>
            </values>
            <values>
                <fullName>value2</fullName>
                <default>false</default>
            </values>
        </picklistValues>
        <picklistValues>
            <picklist>pick2__c</picklist>
            <values>
                <fullName>val1</fullName>
                <default>false</default>
            </values>
        </picklistValues>
    </recordTypes>
    <recordTypes>
        <fullName>rt2</fullName>
        <active>true</active>
        <label>rt2</label>
        <picklistValues>
            <picklist>pick1__c</picklist>
            <values>
                <fullName>value3</fullName>
                <default>false</default>
            </values>
            <values>
                <fullName>value4</fullName>
                <default>false</default>
            </values>
        </picklistValues>
        <picklistValues>
            <picklist>pick2__c</picklist>
            <values>
                <fullName>val2</fullName>
                <default>false</default>
            </values>
        </picklistValues>
    </recordTypes> ...

 When deploying to another instance you should get the same metadata copied over and the same picklists values for the deployed record types should display as available or selected.

 

 

Rajesh..Rajesh..
@sebcos i got same problem ..but i am using change sets, in change sets also showing same problem..
Shai FisherShai Fisher
In order to deploy selected values for the picklist Account.Salutation in some record type (e.g. PersonAccount) via Ant,
you need to manually add it to the XML as "Name":
<picklistValues>
    <picklist>Name</picklist>
    <values>
        <fullName>Mr.</fullName>
        <default>false</default>
    </values>
    <values>
        <fullName>Mrs.</fullName>
        <default>false</default>
    </values>
</picklistValues>