Connect a canvas app to a flow and provide clear status feedback without confusing a submitted request with a completed process.
Implementation approach
Add the flow to the app and call it from a button. Example: Set(varSubmitResult, SubmitRequestFlow.Run(varRequestId)); If(varSubmitResult.success, Notify(“Request submitted.”, NotificationType.Success), Notify(“Submission failed.”, NotificationType.Error)). Return a small response contract from the flow, such as success and trackingId. For long-running approvals, return after creating the request and let the app poll or refresh the Dataverse record for its business status. Do not keep the app waiting for a human approval to finish.
Recommended validation
- Build the flow inside a solution and use connection references.
- Test with real Dataverse security roles and least-privilege connections.
- Handle retries, duplicate triggers, timeouts, and connector failures.
- Keep business status and audit data in Dataverse.
- Verify the complete process in a non-production environment before deployment.
