08/19/2023 07:58 AM
Hi Team ,
This is the payload of my addaccess json . The target application only supports put operations with full payload
08/22/2023 12:19 AM
@kp2345 , I would suggest using call1 in add access json to pull the existing access for the user and then using the response from call1 in call2 and adding the new entitlement so you can send the roles consolidated.
Here is a sample of how you can leverage call1 response value in call2. as a arraylist.
roles\":${List responseList = response.Role1.message.roles.collect{it.id};responseList.add(entitlementValue.entitlement_value);List rolesList = new ArrayList();int count=0;int size = responseList.size();for(String str: responseList){count++;rolesList.add('{\"id\":\"'+str+'\"}');if(count == size){return rolesList;}}}
08/23/2023 06:01 AM