3

I'm integrating SF with other systems using the standard SF API (SOAP and REST). For this, I'm using a specific user which has a special profile (using API Only permission). The Integration user has the Language set on English.

However I need to return the request results on different languages (ES, FR, etc). For instance, the value of picklist should be translated.

Query

Is it possible set on login or in the request the language?

2

Results are returned, by default, in the organization's language. Using the toLabel function returns localized values; this is required to support multi-language organizations. In neither case can you specify the translation language to perform transactions in. You would have to update the user's language key before running the transaction.

2

With SOAP API, you can set LocaleOptions in the request header.

LocaleOptions
Specifies the language of the labels returned.

Note that it will only work for certain 'describe' calls. I haven't found a corresponding option for REST.

  • I didn't vote you down, but you may find your answers are better received when you include some relevant text from any linked resources. – Adrian Larson Oct 11 '17 at 13:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.