Hello, I created an automation where I want to automatically add request participants using a variable, REST API, and JSON.
I found a problem: when I use the update operation to add a user to the request participants, I want to avoid overwriting the existing participants. However, it is still overwriting them instead of adding the new user.
I need to use a variable because the users are obtained dynamically from a Security Group in Microsoft Entra ID, and I don't know in advance how many users belong to the group.
Therefore, I need to add all the users from the Security Group to the request participants without overwriting the participants that are already there.
Does anyone know how I can achieve this using the REST API and JSON?
{
"update": {
"customfield_xxx": [
{
"add": {
"accountId": "{{participantAccountId}}"
}
}
]
}
}