Forum Discussion
Approvals API only working in the default environment
I am using the beta Approvals API (approvalItem resource type - Microsoft Graph beta | Microsoft Learn) for a proof of concept and have noticed that it works great in the Personal Productivity (Default) environment, but I get 404 non found errors when trying to access approvals in other environments. I've tried adding the app registration I'm using to the environment as an S2S app with Sys Admin privileges and added the org API endpoint to the app itself but neither solved it.
Is this intended behavior?
I wound up using the Power Automate approvals API instead and it worked, so this is no longer necessary. Thanks for looking into it though Ayush2001!
4 Replies
- EvangelosAsap1Occasional Reader
Hi,We see the same behavior. The beta Graph approvals API (/solutions/approval/approvalItems) returns 404 ApprovalItemNotFoundOrNotAccessible for approvals created in a production (non-default) environment, while the same calls work against approvals in the default environment of another tenant. In both cases the approvals are created by the Power Automate Approvals connector and are visible in Teams.
@AJBerry223, Ayush2001 could you share which "Power Automate approvals API" you used instead? Did it work for responding to and cancelling approvals created in a non-default environment?
Also, has Microsoft confirmed whether this behavior is intended, and is there a supported way to respond to and cancel approvals from an external system in a non-default environment?
- AJBerry223Former Employee
I wound up using the Power Automate approvals API instead and it worked, so this is no longer necessary. Thanks for looking into it though Ayush2001!
- Ayush2001
Microsoft
Ok AjBerry223
- Ayush2001
Microsoft
Thanks for asking, we will get back to you shortly.