on 2024 Aug 09 8:15 AM
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
Request clarification before answering.
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.