Is it possible to bind Service Portal language based on user's location automatically?

Rebecca_J
Tera Contributor

E.g.: If user's location is Germany, when he logins to Service Portal, the display language automatically switch to German without any human action.
I know user can manually change the language in User preferences in the profile, but we are looking for an automation without any action required from end user.

1 ACCEPTED SOLUTION

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@Rebecca,

So, simple answer is yes but requires a little bit of logic. Whilst the Tokyo release has brought in a new self-service language picker for some portals (as I detail in my blog post here) that doesn't solve the automated first value right?

What you could do, is as your new user records are populating the [sys_user] table, you could have a business rule run on Before Insert where you have a new "Country Code" or 'Location" (what-ever matches your under-pinning data model) and in that Business Rule you could set the "preferred_language" field to the appropriate language.

Be mindful, that it might not be perfect because some countries might have more than one Language (e.g. Belgium and Canada) and some Coutries might share the same language (e.g. Austria, Germany and Switzerland) - this is concept is known as "Locales" which we do now support in the Tokyo release. Suffice to say, you will need to map out what languages you offer vs the countries you operate in, but absolutely do-able with a short and simple business rule,

Many thanks,
kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization

View solution in original post

5 REPLIES 5

Alex Coope - SN
ServiceNow Employee
ServiceNow Employee

@Rebecca,

So, simple answer is yes but requires a little bit of logic. Whilst the Tokyo release has brought in a new self-service language picker for some portals (as I detail in my blog post here) that doesn't solve the automated first value right?

What you could do, is as your new user records are populating the [sys_user] table, you could have a business rule run on Before Insert where you have a new "Country Code" or 'Location" (what-ever matches your under-pinning data model) and in that Business Rule you could set the "preferred_language" field to the appropriate language.

Be mindful, that it might not be perfect because some countries might have more than one Language (e.g. Belgium and Canada) and some Coutries might share the same language (e.g. Austria, Germany and Switzerland) - this is concept is known as "Locales" which we do now support in the Tokyo release. Suffice to say, you will need to map out what languages you offer vs the countries you operate in, but absolutely do-able with a short and simple business rule,

Many thanks,
kind regards

--------------------------------------------------------------------
Director of Globalization Deployment, Internationalization