toLabel() is used to convert the results of particular field into user’s language. All the organizations can use toLabel(). toLabel() helps a lot for the organization where translation workbench is enabled.

Note: Translation workbench is used to specify in what are all the languages the configurations done in your organization can be translated.

Sample SOQL query:
SELECT Name, toLabel(Industry) FROM Account

1 comment:

  1. Only pick list fields and Record types support translation.


Sharing is Caring!!! Share this with your friends!!!

submit to reddit