Get al pending requests

Hi All,

In Workflows we have an action Get all Pending Requests which has an option to filter the results from the list but I guess it is not working I tried to apply this below filter to fetch a particular entitlement from the result.

$.getPendingAccessRequests.pendingApprovals[?(@.requestedObject.name == ‘My_Enttitlement_Name’)].requestedObject.name

But the above filter did’nt work. Can someone help me why it is not working and how the filter should be applied.

Thanks in Advance.

@kanusha9 -

As per the official documentation, You can only apply the filter based on below attributes -
Filtering is supported for the following fields and operators:

id: eq, in

requestedFor.id: eq, in

modified: gt, lt, ge, le, eq, in

accessRequestId: eq, in

created: gt, lt, ge, le, eq, in

Example: id eq “2c91808568c529c60168cca6f90c1313”

Refer the documentation here -

https://developer.identitysoon.com/idn/api/v3/list-pending-approvals/index.html

Refer the working json script -

Thank you

1 Like