Filter provisioning trigger

Hello everyone, I need to create a filter that takes the `operation` from `attributeRequests` and checks if it has the value ‘Remove’. I tried this: `$.trigger.accountRequests[*].attributeRequests[?(@.operation == ‘Remove’)]`, but it didn’t work.

Hi @guilherme_sec

Try this instead:

$.accountRequests[*].attributeRequests[?(@.operation == "Remove")]

It’s not working,

My apologies, I thought you were using the filter on the trigger itself.

It looks like you are trying to do a compare then ending the workflow as a success? If so, why don’t you put the filter on the trigger itself to have those executions not even drop into the workflow?

$..attributeRequests[?(@.operation == 'Remove')]