---
title: "Automating Customer Agreements with Power Apps, SignatureAPI, and Power Automate"
description: "Build a Power Apps form that triggers automated customer agreement signing workflows using SignatureAPI and Microsoft Power Automate."
canonical: "https://signatureapi.com/docs/integrations/power-automate/guides/how-to/envelope-form-through-power-app"
source: "https://signatureapi.com/docs/integrations/power-automate/guides/how-to/envelope-form-through-power-app.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T12:52:44Z"
---

# Automating Customer Agreements with Power Apps, SignatureAPI, and Power Automate

Build a Power Apps form that triggers automated customer agreement signing workflows using SignatureAPI and Microsoft Power Automate.

_Last verified against API version 1.18.0._

## Overview

This tutorial shows you how to streamline customer agreement signing by automatically sending, signing, and storing agreements. By integrating **Power Apps** (for data collection), **SharePoint Documents** (for storing contract templates), and the **SignatureAPI connector** (for electronic signatures), you can eliminate manual errors and delays in your customer agreements workflow.

![The finished Power Automate flow, top to bottom: Power Apps (V2), Customer Name, Customer Email, Get file content using path 2, Create an envelope 2, Add a recipient: Signer 2, Add a template: DOCX, Add a place: Signature, Start an envelope, Wait for envelope, Get a deliverable 2, Create file and Send an email (V2)](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/complete-flow.webp)

*The finished flow*

### What You'll Learn

- How to trigger a flow from a Power Apps form submission.
- Retrieving and pre-filling a DOCX contract template from SharePoint.
- Creating and sending a signature envelope using SignatureAPI.
- Monitoring the signing process and retrieving the signed document.
- Saving the signed contract and automatically notifying the business.

### The Problem

Businesses often struggle with manually handling customer agreements, causing delays in customer onboarding. Common issues include:

- **Slow processing** caused by manual, repetitive tasks.
- **Errors** from manual data entry and document handling.
- **Tracking difficulty** when monitoring signing status across multiple agreements.

### How Automation Helps

Automation simplifies this process by:

- Automatically sending agreements when a Power Apps form is submitted.
- Using templates pre-filled with customer details.
- Tracking signature status and storing documents automatically.
- Instantly informing the business once agreements are signed.

## Requirements

Before starting, make sure you have:

- **Power Automate** for building workflows.
- **SignatureAPI account** for electronic signatures.
- **Power Apps** for collecting customer information.
- **SharePoint Documents** for storing your DOCX templates.
- **Outlook** for sending notifications (other email providers also work).

## Flow Overview

The automation process follows these steps:

1. **Trigger:** A Power Apps form submission starts the flow.
2. **Data Retrieval:** Get customer details and fetch the agreement template from SharePoint Documents.
3. **Signature Process:** Create an envelope via SignatureAPI, add recipient details, and attach the DOCX template.
4. **Monitoring:** Wait for the agreement to be signed.
5. **Storage and Notification:** Save the signed document in SharePoint and notify the business via email.

You create the flow from Power Apps, and you can also open it from Power Automate.

## Step-by-Step Tutorial

Follow these steps to automate your customer agreements signing process using Power Apps, SignatureAPI, and Microsoft Power Automate.

### Step 1: Prepare the Agreement Template

First, create or update your agreement template by adding placeholders for dynamic fields (customer details) and defining where the customer will sign.

**To prepare your template:**

1. Open your existing customer agreement document (DOCX format) in Microsoft Word.
2. Identify each place where customer details should be dynamically inserted (e.g., name, email).
3. Insert placeholders using **double curly brackets** around descriptive keys. Examples:

- Customer name: `{{customer.name}}`
- Customer email: `{{customer.email}}`

4. Define the location for the signature clearly by inserting a signature placeholder using **double square brackets**, e.g.: `[[customer_signature]]`

**Example placeholder usage in your document:**

> _Dear `{{customer.name}}`,_
> _Please review and sign your agreement below:_
> `[[customer_signature]]`

5. Save your template and upload it to **Documents** in the **SharePoint Site**.

**Important:**

- Ensure placeholder keys match exactly with what you will use later in Power Automate.
- Keep your template simple and clear to avoid confusion during dynamic insertion.

![The Customer Agreement Word template with the customer.name and customer.email placeholders and the customer\_signature place circled](https://signatureapi.com/docs/integrations/power-automate/guides/images/word/customer-agreement.webp)

### Step 2: Create a Power App and Initialize Variables

First, create a Power App to collect the necessary customer details (Name, Email Address).

1. Visit [Power Apps](https://make.powerapps.com) and sign in.

2. Create a new **Blank Canvas App** and choose the format type. For this example, choose the **Phone** format.

   ![The Power Apps Start with a blank canvas dialog with the Phone size option, 392 x 852, marked by an arrow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/new-power-app.webp)

3. From the left-hand menu bar, click on the three dots, select **Power Automate**, and select **Create New Flow**.

   ![The Power Apps editor with the more menu open and the Power Automate option marked by an arrow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/new-powerautomate-flow.webp)

4. Select **Create From Blank**.

5. Enter a name for the Flow. Notice that Power Apps has automatically been selected to trigger the Flow.

   ![The new flow named Customer Agreements, with the Power Apps (V2) trigger as its first step](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/trigger.webp)

6. Click on the trigger (**Power Apps (V2)**) and select **Add an input**.

   ![The Create your flow editor with the Power Apps (V2) trigger and its Add an input option](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-input.webp)

7. Select the **Text** type and enter a name for the input (for example, `Customer Name`). Repeat this for the other variable (`Customer Email`).

   ![The Power Apps (V2) trigger with two text inputs named Customer Name and Customer Email](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/pau-text-input.webp)

8. Add a new step and select the **Initialize Variable** action.

- Select the three dots and **Rename** this step according to the variable name (for example, `Customer Name`) before filling out any of the required fields. This will properly name the variable's Dynamic Content value later on. If the step is not renamed, the value will automatically be named "InitializeVariable\_Value."
- Enter the variable **Name**.
- Use the **Type** drop-down menu and select **String** as the variable type.
- Click in the **Value** field and select the `Customer Name` variable from the Dynamic Content list. This allows you to pass in a parameter associated with this variable in Power Apps.
- Repeat these steps to initialize the other variable (`Customer Email`).

  ![The Customer Name variable action of type String, with its Value set to the Customer Name input from the Power Apps (V2) trigger](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/pau-initialize-variable.webp)

### Step 3: Retrieve Contract Template from SharePoint

Now, fetch your customer agreement template stored in SharePoint.

1. Add **"Get File Content using Path"** from the SharePoint connector.
2. Select the DOCX template stored in your SharePoint.

   ![The flow with the Power Apps (V2) trigger, two variables and Get file content using path 2 pointing to a Customer Agreement DOCX file](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/pau-get-file-content.webp)

### Step 4: Create the Envelope with SignatureAPI

In this step, you will configure SignatureAPI to create, send, and track the signature process.

#### 4.1 Create a SignatureAPI Envelope

Begin by creating an envelope to hold your contract and signature process.

1. Add a new step with the **"Create an Envelope"** action (SignatureAPI connector).
2. If prompted, authenticate your connection using your SignatureAPI key from the [SignatureAPI Dashboard](https://dashboard.signatureapi.com/settings/api-keys).
3. Set an **Envelope Title** (e.g., customer name) and email message using dynamic content.

   ![The Create an envelope 2 action with Envelope Title set to Customer Agreement for followed by the Customer Name variable](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/create-envelope.webp)

#### 4.2 Add the Recipient

Next, specify who will receive and sign the contract.

1. Add the **"Add Recipient"** action.
2. Map **Recipient Name** and **Recipient Email** using form details (Dynamic Content).
3. Set the **Recipient Key** (e.g., "customer"), matching your DOCX placeholders.

   ![The Add a recipient: Signer 2 action with Recipient Name set to Customer Name, Recipient Email to Customer Email and Recipient Key to employee](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-recipient.webp)

#### 4.3 Attach the DOCX Contract Template

Now, attach your contract template to the envelope and populate it with customer details.

1. Add the **"Add a Template - DOCX"** action.
2. Select **File Content** from the SharePoint action.
3. Set the **Document Title** (e.g., "Customer Agreement").
4. Ensure your DOCX template uses placeholders (`{{customer.name}}`, etc.) and map each field to the corresponding dynamic content from the Power Apps initialized variables.

   ![The Add a template: DOCX action with data items customer.name and customer.email set to the Customer Name and Customer Email variables](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-template.webp)

#### 4.4 Define Signature Placement

Specify where the customer should sign on the document.

1. Add the **"Add a Place - Signature"** action.
2. Set the **Document ID** using dynamic content.
3. Use the placeholder (e.g., `[[customer_signature]]`) from your DOCX template.
4. Set the **Recipient Key** using dynamic content.

   ![The Add a place: Signature action with Place Key customer\_signature and Recipient Key chosen from the dynamic content list](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-signature.webp)

#### 4.5 Start the Signing Process

Trigger the sending of your envelope to the customer for signing.

1. Add the **"Start Envelope"** action.
2. Select the appropriate **Envelope ID** using dynamic content.

   ![The Start an envelope action with Envelope ID chosen from the dynamic content list, after the Add a place: Signature step](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/start-envelope.webp)

### Step 5: Monitor and Finalize the Contract

Next, configure your flow to wait for the signing to complete, retrieve the signed contract, and notify the business.

#### 5.1 Wait for Signature Completion

Pause the flow until the customer signs the contract.

1. Add the **"Wait for Envelope Completion"** action.
2. Select the correct **Envelope ID** using dynamic content.

   ![The Wait for envelope action with Envelope ID chosen from the Create an envelope 2 dynamic content](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/wait-envelope.webp)

#### 5.2 Retrieve the Signed Contract

Once signed, automatically retrieve the completed document.

1. Add the **"Get Deliverables"** action.
2. Select the correct **Deliverable ID** using dynamic content.

   ![The Get a deliverable 2 action with Deliverable ID chosen from the Wait for envelope dynamic content](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/get-deliverable.webp)

#### 5.3 Save the Signed Contract to SharePoint

Save the signed document for record-keeping.

1. Add the **"Create File"** action (SharePoint connector).
2. Select the **Site Address** and **Folder Path**.
3. Set the **File Name** (ending in `.pdf`).
4. Map **File Content** from the deliverable.

   ![The Create file action with File Name built from Customer Name, Deliverable ID and .pdf, and File Content from Get a deliverable 2](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/save-file.webp)

#### 5.4 Notify the Business via Email

Automatically inform the business that the contract has been signed and saved.

1. Add the **"Send an Email"** action (Outlook connector).
2. Configure the email recipient, subject, and message.
3. Attach the signed contract file from dynamic content.

   ![The Send an email (V2) action with Subject and Body using Customer Name, and the signed PDF attached through File Content](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/send-email.webp)

#### 5.5 Save the Flow

Save the flow by clicking the **Save** button in the top left corner. This will save the flow to Power Automate and add it to the Power App.

### Step 6: Create the Text Inputs in Power Apps

Create the text inputs in the Power App to collect the customer details.

1. Select **Insert** in the top menu bar and then select **Label**.

2. Change the **Text** value of this label to "Name:" You can do this in either the top function bar or through the **Text** property in the right-hand menu.

   ![The Power Apps editor with a label whose Text is Name, and the Insert menu circled](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-label.webp)

3. Select **Input** from the top menu bar and select **Text input** from the drop-down menu.

- Repeat these steps to create the other text input fields for the other variable (`Customer Email`).

  **Tip:** Select the text input bar. Notice the element name has been highlighted in the left-hand Tree view. Click the three dots on this element and **Rename** it to match the text label (in this case, "Name"). This will make it easier to identify this element later when you reference its value to trigger the Flow.

  ![The Power Apps editor with a text input's context menu open and the Rename option marked by an arrow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-text-input.webp)

  ![The Power Apps editor with the second text input selected in the Tree view and renamed email, below the Email label](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-text-input-2.webp)

5. Select **Button** from the top menu bar.

   - Enter `Submit` in the **Text** property on the right-hand menu.
   - Position this button below the text input fields.

   ![The Power Apps canvas with Name and Email labels, two text inputs and a Button marked by an arrow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/add-button.webp)

6. Select the newly created **Submit** button.

- Select **OnSelect** from the drop-down menu in the upper left-hand corner.

- In the function bar, enter: `FlowName.Run(name.Text, email.Text)`. This triggers the Power Automate Flow and passes in the text input fields as parameters that reference the variables initialized in the Flow.

  ![The Power Apps button's OnSelect formula, CustomerAgreements.Run(name.Text, email.Text), on a button labeled Submit](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/button-on-submit.webp)

  **Important:** Power Apps expects a certain order for the parameters and displays an example `.Run()` function call with the variable names as parameter placeholders. Make sure the order of the parameters matches the expected order to prevent invalid argument errors.

  **Note:** By renaming the text input field elements in Step 6, you can easily reference them when passing them into the `.Run()` function as parameters. Power Apps also color-codes each text input field to its corresponding parameter value.

### Step 7: Test Your Automation

Finally, test the entire process end-to-end.

1. Select the **Preview** button in the upper-right hand corner to fill out the text input fields with recipient information and trigger the Flow by clicking the **Submit** button.

   ![The Power Apps editor with the Preview the app play button marked by an arrow, next to the Name and Email form with a Submit button](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/preview-button.webp)

2. Submit a test response by clicking on the **Submit** button.
   ![The app running in preview with sample name and email values entered and the Submit button marked by an arrow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerapps/run-test.webp)

3. Verify:

- The contract is sent to the customer via email.
- The signature process initiates correctly.
- The signed contract saves successfully in SharePoint.
- The business receives an email notification with the signed contract attached.

_Use the following checklist:_

- [ ] Contract sent successfully.
- [ ] Customer receives and signs contract.
- [ ] Signed document stored correctly in SharePoint.
- [ ] Business receives email notification with attachment.

## Troubleshooting & FAQ

### Common Issues

- **API Key Errors:** Ensure your SignatureAPI key is correct and authenticated.
- **Dynamic Content Mapping:** Double-check that placeholder names in your DOCX file match exactly with the dynamic content mappings in your flow.
- **File Access Issues:** Verify permissions and file paths in SharePoint.

### Frequently Asked Questions

- **What if the agreement is not sent?**
  Check your SignatureAPI dashboard for errors and verify the recipient details. Also confirm that the Power Apps trigger is passing parameters correctly to the flow.

- **Can I add more fields to the Power Apps form?**
  Yes. Add additional text inputs in Power Apps, initialize corresponding variables in the flow, and map them to DOCX template placeholders. Update the `.Run()` function call to include the new parameters in the correct order.

- **How do I handle multiple signers?**
  Add additional **Add Recipient** and **Add a Place - Signature** actions in your flow for each signer. Each signer needs a unique recipient key that matches the corresponding placeholders in your DOCX template.

- **Can I use a gallery or dropdown instead of text inputs?**
  Yes. Power Apps supports various input controls. As long as you pass the correct `.Text` or `.Selected` values into the `.Run()` function, the flow will receive the data it needs.

## Best Practices and Security

- Always securely manage API keys.
- Regularly check flow runs in Power Automate for any errors.
- Document any flow or template changes for future reference.

## Additional Resources

- [SignatureAPI Documentation](https://signatureapi.com/docs/api/welcome)
- [Microsoft Power Apps Documentation](https://learn.microsoft.com/en-us/power-platform/)
- [Power Automate Community](https://powerusers.microsoft.com/t5/Microsoft-Power-Automate/ct-p/MPACommunity)
- [SharePoint Documentation](https://support.microsoft.com/sharepoint)

## Conclusion

By completing this tutorial, you have successfully automated the process of sending, signing, and managing customer agreements. This workflow frees your business from repetitive tasks and ensures customer agreements are signed efficiently and stored automatically.

**Happy Automating!**
