Hello,
I am using the event trigger Access request submitted to verify if a request has been submitted correctly.
To submit a request correctly a user must request two access profiles, one that starts with “APP - Role …” and another that starts with “APP - Merchant …”.
I am configuring my event trigger filter to trigger only if one of the access profiles is requested without the other. Therefore the logic operation that should be used is XOR.
I implemented this with the following filter: $.requestedItems[?((@.name contains “APP - Role” && !(@.name contains “APP - Merchant”) )|| (@.name contains “APP - Merchant” && !(@.name contains “APP - Role”)) )]
Which is the XOR logical operator using supported jsonPATH operations.
My problem here is that the trigger still fires when in my access request I have both a role and a merchant. I tried to send the result of a filter in a webhook via workflows and I recieve a null body. Did anyone have a similar problem and if yes how did you solve it.
Does this mean they can request multiple access profiles with APP - Role or APP - Merchant in a single request, or that they can only have one APP - Role and one APP -Merchant, but they could have other access profiles that don’t match that criteria?
If they can only have a maximum of one APP - Role and one APP - Merchant in a request, then you could try this filter:
This will trigger only when one of APP - Role or APP - Merchant is present, but not both. If both are present, it won’t trigger. If neither are present, it won’t trigger. It ignores any other access profiles.