You need to sign in to do that
Don't have an account?
Alex Fedin
Deploying Person Account Picklists
Hi all,
I have 2 sandboxes with the Person Account mode.
I'm deploying changes using Force.com IDE and Migration Tool but I just can't find a way to deploy Person Account Picklist Values.
Whenever I add new values to any picklist in the Person Account Record and deploy the changes, all the picklist values in Person Account Record Type (that was created by salesforce) appear in the Available Values of the picklist rather than in the Selected Values.
I've gone through the Account.object xml and it looks like the Person Account Record type isn't there so I guess it has something to do with it but I can't figure out a way to add it.
I will appreciate any help...
I have 2 sandboxes with the Person Account mode.
I'm deploying changes using Force.com IDE and Migration Tool but I just can't find a way to deploy Person Account Picklist Values.
Whenever I add new values to any picklist in the Person Account Record and deploy the changes, all the picklist values in Person Account Record Type (that was created by salesforce) appear in the Available Values of the picklist rather than in the Selected Values.
I've gone through the Account.object xml and it looks like the Person Account Record type isn't there so I guess it has something to do with it but I can't figure out a way to add it.
I will appreciate any help...
The correct way to deploy the PersonAccount record type is:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>PersonAccount.RecordTypeName</members>
<name>RecordType</name>
</types>
<version>30.0</version>
</Package>
Below is the reference link
https://developer.salesforce.com/forums/?id=906F0000000AUJ7IAO
Regards
Amrender
All Answers
The correct way to deploy the PersonAccount record type is:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>PersonAccount.RecordTypeName</members>
<name>RecordType</name>
</types>
<version>30.0</version>
</Package>
Below is the reference link
https://developer.salesforce.com/forums/?id=906F0000000AUJ7IAO
Regards
Amrender
Thanks for helping me figure out how to add the Person Account to the package but I'm still stuck...
I added the PersonAccount to the package just as you said, and now I have the file PersonAccount.object when I get the metadata but it lacks the custom picklists that I added so I'm still stuck with that.
Thanks,
Alex
In addition to adding this to the package.xml:
<types>
<members>PersonAccount.RecordTypeName</members>
<name>RecordType</name>
</types>
I had to add the Person Account to the CustomObject like this:
<types>
..
<members>PersonAccount</members>
..
..
<name>CustomObject</name>
</types>
Thanks Amrender!