Forum Discussion
Approvals API only working in the default environment
Yes, that's the environment, not the permission. Power Automate approvals are stored in the Dataverse of the environment the flow runs in, and the beta Graph approvals API only sees approvals in the default environment — for anything else it returns exactly the 404 ApprovalItemNotFoundOrNotAccessible you're getting, even though the Teams Approvals app shows the same approval fine because it reads across environments. A Dataverse role won't fix it, since the API doesn't look in the non-default environment at all. The quick check is the environment picker at the top right in Power Automate: if the flow isn't in the default environment, that's your answer. And since it's a beta endpoint, it's not supported for production use — the supported route is moving those flows into the default environment. Is that an option for tenant B, or are the flows pinned to production for another reason?
Thank you, that matches what we see. In tenant B the flows run in a production environment.
I do not know yet why the flows are in production. I will ask the admin whether running them in the default environment is acceptable.
Two follow-up questions, if you know:
1. Is this limitation documented anywhere, or does it come from testing? We could not find it in the Microsoft documentation.
2. The endpoint is beta, so it is not supported for production use in any environment, including the default one. Is there a supported (non-beta) way to respond to and cancel approvals from an external system?