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

Language based Email Triggering from IAS portal

0 Kudos
3,398

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
Cosmin
Explorer

@ALL

I told you that i will come back with a solution. :).

The problem was in my case that i looked always after the onbording users.

I still have ONB1.0 and the users are comming in IAS as emplyees:

Solution, if you have apiv1 or 2 and is for all users types(employee onboardee etc):

Look in the Properties in Source:

  • add if you do not have: locale in sf.user.attributes
    • in my case sf.user.attributes the values are: userId,username,status,email,lastName,firstName,country,lastModifiedDateTime,personKeyNav,loginMethod,addresses.country,custom12,defaultLocale,locale,preferredLanguage
  • Go in transformation and delete the source:$.defaultLocale, Target :$.locale, the valuemapping etc
    • Add in trasformation locale locale:
      • {
        "sourcePath": "$.locale",
        "targetPath": "$.locale",
        "optional": true,
        "functions": [
        {
        "function": "toUpperCaseString"
        },
        {
        "function": "substring",
        "beginIndex": 0,
        "endIndex": "2"
        }
        ]
        },
      • this will change the locale for ex: from "de" to UpperCase "DE" allways ISO2
      • Hier a list with supportet Languages: 2269945 - SuccessFactors Supported Languages with Locales
  • Do not forget to look if you have the trasformation in Target:
    • {
      "sourcePath": "$.locale",
      "targetPath": "$.locale",
      "optional": true,
      "ignore": false
      },
    • Please ignore : FALSE or will not write anything
  • If you still have ONB1.0 you can change the usertype in Onboardee, if you have an isOnboardingUser value as YES in a customfield. In my case custom12 (please add custom12 in sf.user.attributes)
  • In Source add:
    • {
      "targetPath": "$.userType",
      "condition": "$['urn:ietf:params:scim:schemas:extension:successfactors:2.0:User']['customFields'][?(@.customFieldName == 'custom12')].value == ['YES']",
      "constant": "ONBOARDEE"
      },
    • Afterwards you can make a separate template for the Onboardees and send the e-mail in their language
    • As soon as I have ONB 2.0 i will tell you if I have to use once again delauftLanguage or not.

Have fun and a nice week ahead.

Regards

Cosmin

 

Lucas_Elias
Active Participant
0 Kudos
This is awesome! Thanks for sharing it, Cosmin. I will give a try and let you know the results.