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

Language based Email Triggering from IAS portal

0 Kudos
3,477

Hi experts,

We are currently integrating IAS/IPS with Successfactors and we have a requirement where the activation email for new employees should be sent in their locale language based on the users legal entity [Example: User's legal enity belongs to Netherlands, therefore welcome email/activation email should be using the Dutch language template].

How can we set the user's language to a particular value in user management in IAS based on user's legal entity. Is there a transformation code possible in IPS so that the code will determine the value and send it to IAS from IPS and this will trigger the email in respective language. Any other solution is also welcome.

Thank you!

View Entire Topic
Lucas_Elias
Active Participant

@Cosmin 

I've just tried a similar code like yours and I was not being able to save either, but I found where the issue is.

In your code, you have [$.defaultLocale], but the correct is ["$.defaultLocale"].

When I made this change, it allowed me to save.

Example:

{
"type": "valueMapping",
"sourcePaths": ["$.defaultLocale"],
"targetPath": "$.locale",
"defaultValue": "EN",
"valueMappings": [
{ "key": ["en_US"], "mappedValue": "EN" },
{ "key": ["vi_VN"], "mappedValue": "VN" },
{ "key": ["ko_KR"], "mappedValue": "KR" },
{ "key": ["ja_JP"], "mappedValue": "JP" },
{ "key": ["zh_CN"], "mappedValue": "CN" },
{ "key": ["fr_FR"], "mappedValue": "FR" },
{ "key": ["pt_PT"], "mappedValue": "PT" },
{ "key": ["nl_NL"], "mappedValue": "NL" }
]
}

Still having some challenges on sending the notification in the correct language, but I hope it helps you somehow.

Regards,

Lucas

Cosmin
Explorer
0 Kudos
saddly this is not the issue. Reproduce de problem. A neu user will be created and an e-mail will be send in the user language. Thist is working since i reduce the email send just to onboardees For the neue Onboardee (witch have in Custom 12 value YES) now it will take the value DE and it will send the mail fron ONBOARDEE in German. The problem ist not the assigment of the Email template (ONBOARDEE): is working The problem ist not that the mail ist not send in the Language of the user (i extra put in onbehalf in Email template ONBOARDEE 3 languages): Now is workig because if you look in User managment in User details now the users do naot habe Languege field empty. The problem ist that the users do not have the correct Language in IAS: { "type": "valueMapping", "sourcePaths": ["$.defaultLocale"], -------------This is working 🙂 Thanks "targetPath": "$.locale", "defaultValue": "DE", "valueMappings": [ {"key":["en_US"],"mappedValue":"EN"}, {"key":["cz_CZ"],"mappedValue":"CZ"}, {"key":["hr_HR"],"mappedValue":"HR"}, {"key":["pl_PL"],"mappedValue":"PL"}, ----------Thist is not working (the valueMapping) {"key":["ro_RO"],"mappedValue":"RO"}, {"key":["sk_SK"],"mappedValue":"SK"}, {"key":["bg_BG"],"mappedValue":"BG"}, {"key":["de_DE"],"mappedValue":"DE"} ] }, All the users are receiving now German as language (the default DE) and not there language For example look at the usres with the following loginnamens: RO61130244 CZ18046298 SK31135164 They all have German as a language even if they have in defalutLocale in SF: ro_RO, cz_CZ, or sk_SK If I remove the "defaultValue": "DE", you will see that by all users the language in User management/user Details will disapear Then the mails will use the Template ONBOARDEE but the EN version since no user will have the info about the Language 😞 Regards Cosmin
Cosmin
Explorer

@Lucas_Elias

I did found the solution yesterday 🙂 It works but just the default language will be written in User Data.

I have an open INC by SAP.

 

PS: I will post hier as soon as i have a Solution