Click HERE to see how Saviynt Intelligence is transforming the industry. |
07/08/2024 05:55 PM
Hi all! We are trying to provision a Salesforce account from Saviynt, and we are getting the following error message:
Error in user creation errorCode: INVALID_CROSS_REFERENCE_KEYmessage: invalid cross reference id
From the Saviynt debug logs, it did not specify what attribute caused this error. Here is our Salesforce Create Account JSON:
{
"Email":"${user?.getCustomproperty26()}",
"Alias":"${user?.getFirstname()}",
"Username":"${user?.getCustomproperty26().substring(0,user?.getCustomproperty26().indexOf('@')) + '@XXX.com.prd.XXX'}",
"FirstName":"${user?.getFirstname()}",
"LastName":"${user?.getLastname()}",
"IsActive":true,
"FederationIdentifier":"${user?.getUsername()}",
"State":"${if(user?.getCountry()=='United States') {user?.getState()} else {''}}",
"City":"${user?.getCity()}",
"Title":"${user?.getJobDescription()}",
"PostalCode":"${user?.getCustomproperty3()}",
"Phone":"${user?.getCustomproperty24()}",
"Country": ${user?.country == null ? null : '"' + user.country+ '"'},
"Street":"${user?.getStreet()}",
"MobilePhone":"${user?.getPhonenumber()}",
"TimeZoneSidKey":"America/Los_Angeles",
"LocaleSidKey":"en_US",
"LanguageLocaleKey":"en_US",
"EmailEncodingKey": "ISO-8859-1",
"ProfileId":"${profileId}"
}
Any help would be greatly appreciated!
Thanks again!
07/08/2024 07:22 PM
Verify Profile ID: