Add operation is not working in the compare strings operator

Hello All,

I am trying to implement a workflow where the trigger used is provisioning completed. The use case is if the operation if Add then do something else if operation is Remove then do something. To configure this I have used compare strings operator and updated the Value 1 and Value 2 as mentioned in the image. Irrespective of the operation in the attributeRequest, the workflow is going with the false condition. Like when I try to request an AD group, the operation is Add but still it flowing through the false condition. Can someone pls help me what’s the problem here

Try removing the quotes from Value 2. ALso check on the Jsonpath validator if the Jsonpath is retrieving exactly what you want

I tried sample comparison using “matches” condition and it is working fine

Also, Value 2 should not have quotes, remove them and have the static value

I tried removing the quotes, no luck. But when tried to get the first element from the array, it is working fine. $.trigger.accountRequests[0].attributeRequests[0].operation . The catch here is Incase the user requests multiple accounts, then this filter wont help me

Can you try passing in the accountRequests array as an input to a loop, and then within each object try object operation comparison? My guess is the comparison is failing because of the whole array thing being compared with a string. Also lose the quotes on “add” in your screenshot.

1 Like

in this case you can use a loop operation

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.