- Flexera Community
- :
- App Broker
- :
- App Broker Forum
- :
- Re: approveRequest API
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I’m interested in using the approveRequest API.
If I have a Catalog item which has an approval workflow with two or more levels of approvers, can I use this API to approve just one level?
If I approve a request with this API – does it approve for all approvers?
Thanks
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ApproveRequest API in api.asmx "forces" the approval process, in that it approves the entire request when invoked, regardless of the number of approval levels. If You wanted to approve individual levels, then I believe that the REST endpoint allows you to approve individual levels within the approval process. The REST API is documented at the following URL:
https://docs.flexera.com/appportal/2021r1/ag/Content/helplibrary/ABAPI_Approvals_Reject.htm#appbrokerapi_3283587417_1104306
This thread has been automatically locked due to inactivity.
To continue the discussion, please start a new thread.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The ApproveRequest API in api.asmx "forces" the approval process, in that it approves the entire request when invoked, regardless of the number of approval levels. If You wanted to approve individual levels, then I believe that the REST endpoint allows you to approve individual levels within the approval process. The REST API is documented at the following URL:
https://docs.flexera.com/appportal/2021r1/ag/Content/helplibrary/ABAPI_Approvals_Reject.htm#appbrokerapi_3283587417_1104306
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can confirm that to be the case. It's been a few years since Charles helped me with this, so I don't remember all the details, but something to note about the REST API for approvals...
The approval has to come from the "current approver" for the request unless you specify the overrideApprover flag in the request body. What I don't recall is if the account context under which the API is being called has to be the current approver account or if it's sufficient to specify the correct approver credentials in the query parameters (dn=MyDomain&un=CurrentApprover). I think it's the latter. If you do specify the overrideApprover flag in the request body, it will behave the same as the SOAP API and approve the entire request (not just the current approval level).
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, the account context does not matter. You just need to ensure that the un and dn parameters are those of the current approver.
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for confirming. I thought that was the case and totally makes sense (since you wouldn't want to give API access to all approvers).
- Mark as New
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Charles for clarifying.
