function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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!