How get field’s label in apex?

Let’s say you want to get label of Opportunity Stage field, you need to use- Opportunity.StageName.getDescribe().getLabel()

Published by Sandeep Kumar

He is a Salesforce Certified Application Architect having 11+ years of experience in Salesforce.

Leave a Reply