zeross
(Dennis Berendsen)
July 4, 2025, 10:19am
1
I’m trying to build an workflow with the trigger of provisioning completed.
But I want to check the whole account Request to see if there is an removal in it.
When I use the compare string with:
$.trigger.accountRequests[].attributeRequests[ ].operation
equals removal
It doesn’t work because the first variable is an array. So I’m not sure how to continue with the array.
Because when the accountRequest has an remove I want to follow an different path.
Hey Dennis , you can try -
$.trigger.accountRequests[?(@.attributeRequests[?(@.operation == ‘Remove’)])].length > 0
This uses JSONPath filtering to check if any attributeRequest inside any accountRequest has an operation of ‘Remove’
zeross
(Dennis Berendsen)
July 4, 2025, 10:32am
5
How do you use this in the compare operator?
Because $.trigger.accountRequests[?(@.attributeRequests[?(@.operation == ‘Remove’)])].length > 0
Is not a valid JSONPath expression it say
rajeshs
(Rajesh Kumar)
July 5, 2025, 12:54am
6
Dennis Berendsen:
When I use the compare string with:
$.trigger.accountRequests[].attributeRequests[ ].operation
equals removal
It doesn’t work because the first variable is an array. So I’m not sure how to continue with the array.
Because when the accountRequest has an remove I want to follow an different path
@zeross you can try using loop operation in this case
1 Like
zeross
(Dennis Berendsen)
July 14, 2025, 7:11am
8
Have just just the array and the exist data operator.
system
(system)
Closed
September 12, 2025, 7:11am
9
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.