Play Games

Search This Blog

Tuesday, November 3, 2015

How to access custom Label in Apex

Suppose If I have created  " suplierAccountId"  as a custom Label as shown in the image below


Then we can use this custom Label as shown below.
string labelValue =Label.suuplierAccountId;
system.debug('labelValuelabelValue'+labelValue );
Output: labelValuelabelValue 00128000003yhTi