We are delighted to share our new EIC Delivery Methodology for efficiently managing Saviynt Implementations and delivering quick time to value. CLICK HERE.

Multivalued Dynamic Attribute to Create Account Json

anuragtripathi
New Contributor
New Contributor

Can someone please let me know how I can pass dynamic attribute multivalue attribute to Create Account JSON.

Currently Value are going as 

opuIds:['20dad1c3-95ae-4260-ad2a-b4daabec4676', 'e9697c73-e0d1-4d54-b4bf-7258dc3470b7', 'b88b405c-498d-4e6a-89ad-6635a5d7dd83', '7df8e6d0-6dc6-4878-94b5-98fa19663510']

I have to share the value as

opuIds:["20dad1c3-95ae-4260-ad2a-b4daabec4676", "e9697c73-e0d1-4d54-b4bf-7258dc3470b7", "b88b405c-498d-4e6a-89ad-6635a5d7dd83", '7df8e6d0-6dc6-4878-94b5-98fa19663510"]

CreateAccountJSON:

{
"showLogs": true,
"accountIdPath": "accountName",
"dateFormat": "yyyy-MM-dd'T'HH:mm:ssXXX",
"responseColsToPropsMap": {},
"call": [
{
"name": "call1",
"connection": "acctAuth",
"url": "https://ptsg-4epicwbapi01.azurewebsites.net/api/IGA/v1/User/CreateUpdate",
"httpMethod": "POST",
"httpContentType": "application/json",
"httpParams": "{\"userName\":\"${arsTasks.accountName}\",\"firstName\":\"${user.firstname}\",\"lastName\":\"${user.lastname}\",\"email\":\"${user.email}\",\"isLocalAdministrator\":false,\"isActive\":true,\"opuIds\":\"${requestAccessAttributes.get('dynopuid').split(',').inspect()}\", \"facilityId\":[\"c4909fa0-278c-4413-bbf9-a9b0c5e26896\"],\"userRoles\":\"${List listrole=requestAccessAttributes.get('dynroleid').split(',');return listrole}\"}",
"httpHeaders": {
"Authorization": "${access_token}",
"Accept": "application/json"
},
"successResponses": {
"statusCode": [200, 201, 203, 204]
},
"unsuccessResponses": {
"statusCode": [400, 401, 404, 405, 500]
}
}
]
}

Result:

Calling Webservice Url - https://ptsg-4epicwbapi01.azurewebsites.net/api/IGA/v1/User/CreateUpdate with httpParams - [userName:abhishekcs, firstName:Abhishek, lastName:Nair, email:null, isLocalAdministrator:false, isActive:true, opuIds:['20dad1c3-95ae-4260-ad2a-b4daabec4676', 'e9697c73-e0d1-4d54-b4bf-7258dc3470b7', 'b88b405c-498d-4e6a-89ad-6635a5d7dd83', '7df8e6d0-6dc6-4878-94b5-98fa19663510'], facilityId:[c4909fa0-278c-4413-bbf9-a9b0c5e26896], userRoles:[88dc0258-1d74-4b93-9353-48755a033252]]

 

 

2 REPLIES 2

anuragtripathi
New Contributor
New Contributor

With ${requestAccessAttributes.get('dynopuid').split(',').inspect().replace('\\'','\"')}. Saviynt is giving error.

 

["${requestAccessAttributes.get('dynopuid').toString().replace(',','","')}"]


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.