Hi all,
I’m trying to create a Role Review Campaign via Workflow using the HTTP Request card.
It works when I hardcode the role IDs:
"roleIds": ["11111111111111111111111111111111", "22222222222222222222222222222222"]
But I want to make this dynamic using the output from the Get Access card, which returns:
[
{ "id": "aaaa1111bbbb2222cccc3333dddd4444", "name": "Business Role 1", "type": "ROLE" },
{ "id": "eeee5555ffff6666gggg7777hhhh8888", "name": "IT Role", "type": "ROLE" }
]
I’ve tried expressions like
{{@toJson(@map($.getAccess.accessItems, it.id))}}
and
{{$.getAccess.accessItems[*].id}},
but the workflow always errors with invalid JSON or parsing issues.
Has anyone managed to dynamically pass an array of role IDs from Get Access into the roleIds field for campaign creation?