How to get the label Name for Object’s field in Salesforce?

How to get the label Name for Object’s field in Salesforce?

How to get the label Name for Object’s field in Salesforce?
Sample Code:

system.debug( ‘Field Label Name is ‘ + Opportunity.StageName.getDescribe().getLabel() );


Output:


Leave a Reply