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
henryCHhenryCH 

User Locale and Language not available as merge fields

Hi everybody,

I'm currently working on an S-Control that should support language and locale sensitive contents like date formats. I had to find out that almost all fields of the User object are available, but Language and Locale are missing. So from my perspective that means multi-language support for S-Controls is not available. I wonder if there's a good reason for hiding these two fields from the merge functionality and if somebody knows a workaround? And no, an API call in order to get the full User info is not an acceptable workaround.

Thanks and best regards,
Henry
mikefmikef
I don't know the reason for "hiding" these merge fields, my guess is no one made the choice to hide them; R&D just didn't expose the merge fields. And there is no workaround; the answer is to do an API Utility call for these values.

var user = sforce.connection.getUserInfo();

All of the results are defined in the API docs, great place to start.

If you are writing this scontrol for Professional Edition, and the API is turned off then yes there are no merge fields that will help you support locale.