How to Deploy Standard Picklist Values in salesforce

From Api 38.0 and later, Standard Picklist Value metadata type in salesforce would be StandardValueSet in salesforce.

Note : Till Api 37.o Standard Picklist Values comes under custom field metadata type, picklist fields and StandardValueSet Names are case-sensitive

For Example, If you added some more picklist values in case status field and if you needed to deploy the latest values from one sandbox to other sandbox means then your XML file should be like as illustrated below,

<?xml version="1.0" encoding="UTF-8"?>
 <Package xmlns="http://soap.sforce.com/2006/04/metadata">

<types>

<members>CaseStatus</members>

<name>StandardValueSet</name>

</types>

<version>41.0</version>
 </Package>

Standard Picklist Value API names before and After API 38.0 :

Standard Value Set Name (API version 38.0 and later) Field Name (API version 37.0 and earlier)
AccountContactMultiRoles AccountContactRelation.Roles
AccountContactRole AccountContactRole.Role
AccountOwnership Account.Ownership
AccountRating Account.Rating

Lead.Rating

AccountType Account.Type
AssetStatus Asset.Status
CampaignMemberStatus CampaignMember.Status
CampaignStatus Campaign.Status
CampaignType Campaign.Type
CaseContactRole CaseContactRole.Role
CaseOrigin Case.Origin
CasePriority Case.Priority
CaseReason Case.Reason
CaseStatus Case.Status
CaseType Case.Type
ContactRole OpportunityContactRole.Role
ContractContactRole ContractContactRole.Role
ContractStatus Contract.Status
EntitlementType Entitlement.Type
EventSubject Event.Subject
EventType Event.Type
FiscalYearPeriodName Period.PeriodLabel
FiscalYearPeriodPrefix FiscalYearSettings.PeriodPrefix
FiscalYearQuarterName Period.QuarterLabel
FiscalYearQuarterPrefix FiscalYearSettings.QuarterPrefix
IdeaCategory1 IdeaTheme.Categories1
IdeaMultiCategory Idea.Categories
IdeaStatus Idea.Status
IdeaThemeStatus IdeaTheme.Status
Industry Account.Industry

Lead.Industry

LeadSource Account.AccountSource

Lead.LeadSource

Opportunity.Source

LeadStatus Lead.Status
OpportunityCompetitor Opportunity.Competitors
OpportunityStage Opportunity.StageName
OpportunityType Opportunity.Type
OrderType Order.Type
PartnerRole Account.PartnerRole
Product2Family Product2.Family
QuestionOrigin1 Question.Origin1
QuickTextCategory QuickText.Category
QuickTextChannel QuickText.Channel
QuoteStatus Quote.Status
RoleInTerritory2 UserTerritory2Association.RoleInTerritory2
SalesTeamRole OpportunityTeamMember.TeamMemberRole

UserAccountTeamMember.TeamMemberRole

UserTeamMember.TeamMemberRole

AccountTeamMember.TeamMemberRole

Salutation

Contact.Salutation

Lead.Salutation

ServiceContractApprovalStatus ServiceContract.ApprovalStatus
SocialPostClassification SocialPost.Classification
SocialPostEngagementLevel SocialPost.EngagementLevel
SocialPostReviewedStatus SocialPost.ReviewedStatus
SolutionStatus Solution.Status
TaskPriority Task.Priority
TaskStatus Task.Status
TaskSubject Task.Subject
TaskType Task.Type
WorkOrderLineItemStatus WorkOrderLineItem.Status
WorkOrderPriority WorkOrder.Priority
WorkOrderStatus WorkOrder.Status

Be the first to comment

Leave a Reply

Your email address will not be published.


*