04/12/2023 04:42 AM
Hi,
Is it possible to read the attributes from Request data into the connection attributes eg : createAccount, updateAccount etc. ?
If yes, can you please share some sample JSONs which we can refer while building such a configuration ?
Best Regards,
Varun
04/12/2023 05:01 AM
Please refer to following which the binding variables are supported for Rest Connector :
document https://docs.saviyntcloud.com/bundle/REST-v2020x/page/Content/Configuring-the-Integration-for-Provis...
To utilize any dynamic attribute in the request and to obtain that value in the newly created account or updated account, use a format similar to the following
{
"accountIdPath": "call1.message.ResourcePartyNumber",
"call": [
{
"name": "call1",
"connection": "userAuth",
"url": "<<URL>",
"httpMethod": "POST",
"httpParams": "{\"FirstName\": \"${user.firstname==null? '': user.firstname}\",\"LastName\": \"${user.lastname==null? '': user.lastname}\",\"Username\": \"${user.systemUserName==null? '': user.systemUserName}\",\"ResourceEmail\": \"${user.systemUserName==null? '': user.systemUserName}@organization1.com\",\"BusinessUnit\": \"<organizationname><Business Unit>\", \"LegalEntity\": \"organization1<LE>\", \"ResourceOrganizationName\": \"${requestAccessAttributes.get('ResourceOrganizationName')}\",\"ResourceOrgRoleCode\": \"${requestAccessAttributes.get('ResourceOrgRoleCode')}\",\"SalesGroup_c\": \"${requestAccessAttributes.get('SalesGroup_c')}\",\"UserStatus\": \"A\",\"PersonType\": \"${requestAccessAttributes.get('PersonType')}\",\"HRManagerEmailAddress\": \"abc@organization1.com\",\"TimezoneCode\": \"${requestAccessAttributes.get('TimezoneCode')}\",\"JobTitle_c\": \"Pro, Accountant\"}",
"httpHeaders": {
"Authorization": "${access_token}"
},
"httpContentType": "application/vnd.oracle.adf.resourceitem+json",
"successResponses": [],
"unsuccessResponses": {
"statusCode": [
400,
401,
404,
405,
500
]
}
}
]
}
04/12/2023 05:10 AM
Thank You, @RakeshMG for your response.
Also, apologies as I did not completely clarify the question.
Actually, this capability is required in the Active Directory connector. Can we refer requestAccessAttributes object within the connector configurations of Active Directory connector ?
Best Regards,
Varun
04/12/2023 05:17 AM
04/12/2023 05:31 AM
Thank You, @RakeshMG , i'll test these configurations and revert in case of any further questions.
Best Regards,
Varun