Hello. We are attempting to filter an “Access Request Submitted” Event Trigger based on a request for an entitlement on a specific source being present on a given Access Request. We only want this trigger to kick off if an entitlement for a specific source is present in the access request.
The use case for this is using the event trigger here to kickoff a Workflow before the access request for this source gets through the approval phases.
Looking at this link from SailPoint:
I am seeing where I can get the items that are requested, but I am not seeing a way to filter and ensure that they pertain to a specific source.
Are you not able to select the specific entitlement name / item from the list of items (JSONPath), and dump that into a workflow variable (if found), then just compare the workflow variable? Or even just compare the JSONPath to the entitlement name?
e.g. Take this sample request from the documentation, the JSONPath would give you an ID…essentially, if you have an ID, then you have the entitlement in the request:
@IIQUserOnCompass thanks for the response! I’ve tried testing getting both the name and the ID like you suggested and both putting it in a variable and putting it directly in an email to try and see the output for myself.
I’ve used this call just to try and see if it would work:
$.input.requestedItems[0].name
But when I put it in a variable or email I am just seeing the output of the variable name like {{$requestName}}
Edit:
It looks like doing a call for $.trigger.accessRequestId works to get the Access Request ID. But when I store it in a variable, the variable doesn’t seem to show up as callable after being saved. Do you know of a reason why that might be?