How To Translate Picklist Values In Salesforce
How to translate picklist values in salesforce. SELECT toLabel your_field__c FROM YourObject__c. View Active and Inactive Picklist Values. LanguageLocaleKey-This field is available in API version 160 and earlier.
It is the same as the Language fieldPicklist 3. To do this use the command toLabel in SOQL query. Manage Inactive Picklist Values.
You can use Global Picklist Values in validation rules. Global Picklist Values appear to be identical to a regular picklist from the end-user perspective. You can use Global Picklist Values in field dependencies.
What is displayed to the user. Everything from custom picklist values to custom fields can be translated so your global users can use all of Salesforce in their language. I need something like.
I am using the toLabel function in my SOQL queries but since the Apex Controller executes in the Locale of the Guest Site User this will simply return the picklist values in the default language. Contact con select ToLabel Department_intern__cGerman from Contact where. When a customer submits a question feedback or issue it automatically creates a case in Salesforce.
But if you want to show that fourth value for some users then you have to create the record type and remove the fourth value for that particualr record type. Mon Nov 09 2020. Salesforce Translate Picklist Values.
I am correctly displaying my objects custom labels but I unfortunately cannot seem to get the translated picklist values. But to get the data picklist values and record type names in the appropriate language in Apex and VisualForce we have to do it ourself.
Here is the official documentation.
Salesforce takes care of the translation user interface so we always got the right language. Contact con select ToLabel Department_intern__cGerman from Contact where. To do this use the command toLabel in SOQL query. Here Department_intern__c is a picklist. Global Picklist Values appear to be identical to a regular picklist from the end-user perspective. Delete or Deactivate Lookup Filters. But if you want to show that fourth value for some users then you have to create the record type and remove the fourth value for that particualr record type. Field type Reference 2. In order to auto-translate Salesforce would need something from the user to determine the language.
Miscellaneous Sample Validation Rules. Sample Quote Validation Rules. But to get the data picklist values and record type names in the appropriate language in Apex and VisualForce we have to do it ourself. You can use Global Picklist Values in validation rules. Go to Setup enter Translations Settingsselect Translations Settings. Manage Inactive Picklist Values. Salesforce Translate Picklist Values.
Post a Comment for "How To Translate Picklist Values In Salesforce"