You need to sign in to do that
Don't have an account?
Patrick Wong
MasterLabel of OpportunityStage Translation
Is there any way to get the Translated MasterLabel of the OpportunityStage in Apex Code?
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
for(PicklistEntry picklistEntry : Opportunity.StageName.getDescribe().getPicklistValues()){
picklistEntry.getLabel();
}
All Answers
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others and improve the overall quality of Discussion Forums.
Gaurav Kheterpal
Certified Force.com Developer| Salesforce Mobile Evangelist| Developer Forums Moderator| Dreamforce Speaker
Thanks for your reply. The MasterLabel in OpportunityStage Object is the un-translated value. I need the translation of all Opportunity Stage Value.
for(PicklistEntry picklistEntry : Opportunity.StageName.getDescribe().getPicklistValues()){
picklistEntry.getLabel();
}