An API that connects multiple Microsoft services, enabling data access and automation across platforms
Hi Evangelos,
The "one tenant" part is the first thing I'd check: which Power Platform environment the flow runs in, in that tenant.
Power Automate approvals are stored in the Dataverse of the flow's environment. The Teams Approvals app shows approvals from all environments, but the beta Graph approvals API has been reported to work only for the default environment. For approvals created in any other environment it returns exactly the 404 ApprovalItemNotFoundOrNotAccessible you see. In this Tech Community thread, adding the app as a System Administrator in the target environment didn't change it. Microsoft hasn't documented this, so treat it as observed behavior, not a guarantee.
Quick check: in Power Automate, open the flow and look at the environment picker (top right). If it's not the default environment in the failing tenant and it is in the working one, that's your difference.
On your three questions:
- Dataverse roles: they didn't help in the case above. The API doesn't seem to read non-default environments at all, so security roles on
msdyn_flow_approvalwon't fix it. - Supported? It's a beta API ("not supported in production"). For a supported path, either move the flows to the default environment, or let the flow itself handle the SAP decision: an HTTP trigger or a second flow that SAP calls, so the approval completes inside Power Automate instead of from outside.
- Delete: the Graph API has no delete, only cancel, and only the approval's owner can cancel. With the Approvals connector, the owner is the account of the flow's connection, not necessarily the user your custom connector signs in as. Abandoned approvals can be removed by the requestor or an environment admin in the approval center.