Need API to get the count of approvals pending with owner

Which IIQ version are you inquiring about?

Version 8.3

Share all details related to your problem, including any error messages you may have received.

Hello All,

Having one requirement where need to get the approval workitem count which is pending with the current owner his/her bucket.

Need REST API for this, reason we have some unified portal where we need to show this count.

Not getting out of the box API where will get only count of pending approval workitem.

can someone suggest any solution and steps?

You might not be able to achieve this via OOTB apis however, there are few ways to achieve this

  1. You could create a custom workflow that accepts the manager name (and/or workitem name) and returns the number of pending workitems for the same.

Abd then utilise the OOTB SCIM api to launch a workflow.

  1. Create a REST plugin that provides an endpoint and based on the input (manager name and/or workgroup), fetches the pending workitem and returns it in a json format.

Please keep in mind to make sure that you add authorization on top of the rest endpoints via capabilities and sprights so that only allowed identities can call the endpoint.

Thanks for the response @Abhisinha89 .

Let me develop the rest plugin to achieve this requirement.

Thanks,
Akshay

There you go
communityrestapi.1.0.zip (77.4 KB)
you have to grant to the proxy user communityRoleRESTAllow sp_right and than you can use postman to count approvals,