How-to guides
Require a Teams Approval Before Sending an Envelope
Ask a manager to approve in Microsoft Teams before Power Automate sends a document for signing, and notify the requester if the manager rejects it.
Overview
This flow holds a document until someone approves it. Microsoft’s Approvals connector sends the request, and the approver answers from a Microsoft Teams adaptive card, an Outlook email or the Power Automate action center. If they approve, the SignatureAPI connector creates and starts the envelope. If they reject, the requester gets an email and nothing is sent.
You need the SignatureAPI connector set up with a connection, and a Power Automate license that includes standard connectors. Approvals is a standard connector, and it stores approvals in Dataverse, which is created for you in the default environment. See Get started with Power Automate approvals.
Build the flow
Add a trigger
Use any trigger that carries the document and the requester. This page uses the SharePoint When an item is created trigger, with Get attachments and Get file content to read the PDF, as in Contracts with SharePoint List.
Ask for approval
Add Start and wait for an approval from the Approvals connector. Pick an Approval type: Approve/Reject - First to respond completes on any one answer, and Approve/Reject - Everyone must approve needs every approver. Fill in Title and Assigned to (email addresses separated by a semicolon), and put a link to the document in Item link. The flow pauses until the approvers answer. See the Approvals connector.
Branch on the outcome
Add a Condition. Set the left box to the Outcome dynamic content from the approval, the middle box to is equal to and the right box to Approve. The responses are case-sensitive. See Add a condition.
If yes, create and start the envelope
In the If yes branch, add these SignatureAPI actions in order:
- Create an envelope: set Envelope Title, and use Envelope Mode
testwhile you build. - Add a document: PDF: map File Content from Get file content and Envelope ID from the previous step.
- Add a recipient: set Recipient Name, Recipient Email, a Recipient Key such as
signer, and the Envelope ID. - Add a place: Signature: set a Place Key, the same Recipient Key, the Document ID, and the position with Page Number, Distance From Top and Distance From Left.
- Start an envelope: set the Envelope ID.
If no, notify the requester
In the If no branch, add Send an email (V2) from the Outlook connector. Send it to the requester, and put the approver’s comments from the approval in the body so they know why.
Wait for the signature
To continue after the signer finishes, add Wait for envelope and then Get a deliverable after Start an envelope, as in the SharePoint tutorial. To react to the result in a separate flow, use the Envelope completed trigger.