cancel
Showing results for 
Search instead for 
Did you mean: 

IPS conditional mapping of personal vs. business email from SF User to IAS User email-new

anuroopagrawal
Explorer
0 Kudos
159

I have a requirement to set the email ID in IAS as below :

If Business Email ID is Empty and Personal Email ID (custom-string1) is empty - Set Email in IAS as Dummy

If Business Email ID is empty and Personal email ID ( custom-string1) is not empty - Set Email in IAS as  Personal Email ID [ Value in Custom-string1 field]

 Else if Business Email ID is not empty - Set email in IAS as Business Email ID

 

For this I have below code related to EMail ID in IAS source system :

 

{
"sourcePath": "$.emails",
"targetPath": "$.emails",
"optional": true,
"preserveArrayWithSingleElement": true
},
{
"sourcePath": "$.userName",
"targetPath": "$.emails[0].value",
"condition": "($.emails EMPTY true) && ($.custom02 EMPTY true)",
"preserveArrayWithSingleElement": true,
"functions": [
{
"function": "concatString",
"suffix": "@sap-test.de"
}
]
},
{
"sourcePath": "$.emails[?(@.primary== true)].value",
"optional": true,
"correlationAttribute": true
},

{
"sourcePath": "$['urn:ietf:params:scim:schemas:extension:successfactors:2.0:User']['customFields'][?(@.customFieldName == 'custom02')]['value']",
"targetPath": "$.emails[0].value",
"condition": "($.emails EMPTY true) && ($.custom02 EMPTY false)"
},

The "&&" condition is unfortunately not working as when I have $emails as EMPTY and $.custom02 has a value it is still sending the DUMMY address to IAS , whereas it should send Custom02 to IAS in that case.

Is something wrong in syntax here . I am using SCIM2version.

Any help would be much appreciated. Thanks.

 

REgards,

Anuroop

 

 

 

Accepted Solutions (0)

Answers (0)