Click HERE to see how Saviynt Intelligence is transforming the industry. |
10/20/2024 09:16 PM
Hi Team,
Could someone pls check the below line is correct or wrong?
In Salesforce OOTB Connector document we have like this , "ProfileId": "${profileId}"
As per our requirement I written like below:
"ProfileId": "${(user?.comments == 'Workday Imported') ? profileId : user.customproperty15}",
else part is triggered when I created user for salesforce through form, but when I trying with ARS page for internal user having comments is Workday Imported getting below error
Error in user creation errorCode: MALFORMED_IDmessage: Profile ID: id value of incorrect type: null
Thanks,
Bhargavi Padaraju.
10/20/2024 09:51 PM - edited 10/20/2024 10:16 PM
@Bhargavi3 what value do you have to pass when comment is equal to workday imported.
Sample
"ProfileId": "${(user?.comments == 'Workday Imported') ? 'profileId' : user.customproperty15}",
10/20/2024 10:17 PM
Hi @NM,
We have two scenarios here:
Internal Users and external users
Internal users will raise a request from ARS page and salesforce OOTB connector will take profile id automatically.
For external users, we created Dynamic attribute in user form, from there user will select profile id and we are storing in cp15 and passing in connector.
comments ="Workday imported" is internal users' scenario.
Thanks,
Bhargavi Padaraju.
10/20/2024 10:35 PM
@Bhargavi3 for internal users it will automatically take profile ID so you have to map it to a property right?
10/20/2024 10:58 PM
What is value stored in cp15 ?
10/20/2024 10:21 PM
@Bhargavi3 add null handling check it , i belive user.cp15 have value?
try below
"ProfileId": "${(user?.comments == 'Workday Imported') ? profileId : (user?.customproperty15 !== null ? user.customproperty15 : '')}"
10/21/2024 01:50 AM
Hi @NM ,
Asd per OOTB Connector Salesforce guide, we need to pass "ProfileId":"${profileId}". But we have two scenarios as per the requirement. So, I included if else logic, but it is not working.
@Raghu, tried with the above code: getting below error
"ProfileId": "${(user?.comments == 'Workday Imported') ? profileId : (user?.customproperty15 != null ? user.customproperty15 : '')}"