November 14, 2019

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:


No comments:

Post a Comment