+ Start a Discussion
boihueboihue 

Apex codes using of new Custom Label

Hi,
In the new version 9 of Salesforce, we can use the new features of Custom Label in the Apex Codes and Visualforce Pages. I knew how to use this new Custom Label in my Visualforce Pages but could any expert show me a sample how to use this new Custom Label in the Apex Codes.
Best regards,
Boi Hue
jaime@timbajaime@timba


String test = Label.<custom label name>;

for example:

String test = Label.ok;


where ok is the name of the custom label I created.


boihueboihue

Hi Jaime, thanks for your help!

It works fine!