Fetch Custom Labels and their Translations in Apex.
Вставка
- Опубліковано 16 жов 2024
- Learn to configure Custom Labels and their Translations by enabling Translation Workbench in different languages and fetch the translations in Apex Class.
#salesforce #customlabels #translation #apex
Thank you sir
Welcome! Please subscribe the channel if not done already!
You have no idea what you have shown here. Totally removing the metadataservice call out.
This isn't working - getting error -- Executing:
======================================================================
String value = System.Label.get('', 'ErrorMessage', 'fr');
System.debug(value);
======================================================================
Success.
04:25:05.13 (xxxxx)|USER_DEBUG|[2]|DEBUG|An error occurred while trying to update the record. Please contact System Administrator.