The creation of an approval, with requests and responses, is complex and involves the writing of multiple records to the CDS database. These records are used for the presentation of the data within the Power Automate supported clients and are not optimized for consumption or use by custom flows and applications. Additionally, the data represents the point-in-time state of the approvals, not a historical record of all changes to the data, so it can not be used as the historical trail of all changes made to approval data.
High Level Schema Description
Every approval created will have one representative row in msdyn_flow_approval
s. The owner of this record will be the creator (the user account corresponding to the connection used in the flow, or the on-behalf-of-owner if that field is specified when creating the approval).
Every recipient of the approval will own an msdyn_flow_approvalrequest
record. When those users respond there will a an msdyn_flow_approvalresponse
record.
When the termination criteria of the approval is met based on the responses received, the approval record will be marked as complete (inactive, in CDS terms).
Note that all owner records are linked to the SystemUsers entity that represent the AAD users.
Supported scenarios (not exhaustive)
Use the CDS connector to:
-
Trigger on creation or completion of approvals using the "When an entity is created, modified, or deleted" trigger.
-
Monitor approvals that have not been completed (requests for which no corresponding response exists) using the "List records" action.
-
Build a PowerApp that shows approvals assigned to specific users or the app user using the "List records" action.