cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SuccessFactors API language

shatsijev
Explorer
0 Kudos
482

Hi,

I've been scratching my head for a moment already. Is there a way to pass the language as a parameter or a header so the API would return the localized value in the given language ?

Say I have an API user whom default language is English (en_GB) and I'd like to get countries (Country) with the externalName_localized in French, is there any way ?

I tried the following:

  • sap-locale
  • sapml-language
  • localization
  • locale
  • sap-language
  • Accept-Language
  • Content-Language

None of the parameters or headers (for the last 2) worked.

The only way to get the data from the API in French is to change the default language in SuccessFactors directly, which is clearly not the intent.

Accepted Solutions (0)

Answers (1)

Answers (1)

alexandermenz
Explorer
0 Kudos

Hi @shatsijev ,

normally you can look in the Data Dictionary in SuccessFactors to see if there is such a property:

alexandermenz_0-1740553622180.png

If I understand correctly you are querying the country object? The country object should have depending on what languages you activated in your instance have properties reflecting the language.

For example there is an:
'externalName_defaultValue'

and for each language something like this:
'externalName_en_US'

Also there is something like this:
'externalName_localized'

While localized works like you described, giving back the language of the user, you should try the specific language property and see if it is what you are looking for.

Hope this helps

Kind regards
Alexander

shatsijev
Explorer
0 Kudos

Hi @alexandermenz ,

Thank you for your response. I appreciate your input; however, I believe there might have been a misunderstanding regarding my original question.

I'm specifically seeking a technical solution to force the SAP SuccessFactors API to return localized data in a specified language, independent of the user's language settings. For instance, if I'm accessing the API as a user whose language is set to English (UK), I want to retrieve data—such as country names—localized in French (France) without altering the user's language preference.

I already have a logic in place that checks the user's local settings and selects the appropriate name_ property based on that. However, I'm looking for a method to directly instruct the API to return data in a specific language, such as French, regardless of the user's current language configuration.

If you have insights or suggestions on how to implement this, perhaps by passing a language parameter in the API request or through another method that allows the API to return data in the desired localization, I would greatly appreciate your guidance.

Best regards

Soultan Hatsijev

shatsijev
Explorer
0 Kudos
Hi,