06/09/2023 04:17 PM
Hello,
I have a dynamic attribute userGroupLocation mapped to Cp30 of accounts that I am selecting from the Request account form.
In createaccountjson I have tried below variations
"User_Group_Location__c":"${reqAttr.customproperty30}"
"User_Group_Location__c":"${requestAccessAttributes.customproperty30}"
"User_Group_Location__c":"${requestAccessAttributes.get('userGroupLocation')}"
All 3 are giving same error below.
Error in user creation errorCode: INVALID_OR_NULL_FOR_RESTRICTED_PICKLISTmessage: User Group (Location): bad value for restricted picklist field: null
I can see the value populated in request_access_attrs table. Then why is it still passing null value to the target application?
I can also see it populated in the binding map twice. once in reqattrs and once in requestAccessAttributes.
DEBUG provisoning.SalesForceProvisioningService - binding: [endpoints:Salesforce - ***, reqAttr:[cutomproperty30:****], requestAccessAttributes:[cutomproperty30:****], user:*****
Solved! Go to Solution.
06/11/2023 10:39 PM
In the above logs I see the customproperty30 is populated incorrectly as cutomproperty30
DEBUG provisoning.SalesForceProvisioningService - binding: [endpoints:Salesforce - ***, reqAttr:[cutomproperty30:****], requestAccessAttributes:[cutomproperty30:****], user:*****
Did you copy this from the logs or is it a typo? Can you please double check the value populated under the "Accounts column" in the dynamic attribute?
06/14/2023 07:00 AM
Initially it was wrong but the issue was there even after it was corrected.
Finally, this one worked. ${requestAccessAttributes.get('customproperty30')}