Salesforce Fact #701 | Access custom label dynamically in apex
We can now access custom labels in apex dynamically. With Summer'23 release, we have a new System.Label.get() method which returns the translation of a particular custom label for a particular language.
Note: passing the namespace as blank also returned the same results.
Attached are the screenshots.
Comments
Post a Comment