---
title: "Filter Triggers by Envelope Topic"
description: "Run a Power Automate flow only for the envelopes you care about by tagging envelopes with topics and setting the same topic on the trigger."
canonical: "https://signatureapi.com/docs/integrations/power-automate/guides/how-to/filter-triggers"
source: "https://signatureapi.com/docs/integrations/power-automate/guides/how-to/filter-triggers.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T12:52:44Z"
---

# Filter Triggers by Envelope Topic

Run a Power Automate flow only for the envelopes you care about by tagging envelopes with topics and setting the same topic on the trigger.

_Last verified against API version 1.18.0._

## Overview

Sometimes you only want to trigger a flow for specific envelopes, not every envelope in your SignatureAPI account. If every department's flow runs on every completed envelope, each team gets documents that aren't theirs.

Topics fix this. A topic is a label you put on an envelope when you create it. A trigger with a value in **Topics** runs only for envelopes that have that topic, so each department's flow sees only its own envelopes.

![The finished Power Automate flow: When a deliverable is generated, Get a deliverable and Send an email (V2)](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/complete-flow.webp)

*The finished flow*

In this example, the flow runs only for envelopes created by the sales department, which use the topic `sales_department`. When the signed document is ready, the flow emails it to the sales team.

## Requirements

- **Power Automate**, with a connection to the SignatureAPI connector. See [Authentication](https://signatureapi.com/docs/integrations/power-automate/authentication).
- **Outlook** (Office 365 Outlook connector), to send the email.

## Creating the Envelope

This guide assumes you already have a Power Automate flow that creates envelopes using the **Create an envelope** action from the SignatureAPI connector.

Make sure that flow sets a topic in the **"Envelope Topics"** field under Advanced parameters. In this case, use the topic `sales_department`.

![The Create an envelope action with Envelope Topics, under Advanced parameters, set to sales\_department](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/envelope-topics.webp)

A topic starts with a lowercase letter and contains only lowercase letters, digits and underscores, up to 32 characters. An envelope can have up to 10 topics. See [Topics and filters](https://signatureapi.com/docs/integrations/power-automate/envelopes/topics).

## Flow Overview

**Email sales department deliverables to the sales team**

1. **Trigger: When a deliverable is generated** (SignatureAPI)
   - Topics: `sales_department` (typed value). The trigger runs only for envelopes that have this topic.
2. **Action: Get a deliverable** (SignatureAPI)
   - Deliverable ID: `Deliverable ID` (dynamic content). Dynamic content from When a deliverable is generated.
3. **Action: Send an email (V2)** (Office 365 Outlook)
   - To: `sales@acme.example` (typed value)
   - Subject: `Signed sales contract` (typed value)
   - Attachments Name: `@{triggerBody()?['data']?['envelope_id']}.pdf` (expression)
   - Attachments Content: `File Content` (dynamic content). Dynamic content from Get a deliverable.

## Trigger a Flow for Selected Envelopes

Create an automated flow that starts when a deliverable is generated.

1. Go to **Power Automate** and select **Automated cloud flow**.
2. Name your flow (for example, "Sales department signed documents") and choose the trigger **When a deliverable is generated** from the SignatureAPI connector.

![The When a deliverable is generated trigger from the SignatureAPI connector added to a new flow](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/trigger.webp)

3. In the trigger's **Topics** field, enter `sales_department`. The trigger now fires only for envelopes with this topic.

![The When a deliverable is generated trigger with sales\_department entered as the first Topics item](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/add-topics.webp)

How the filter matches:

- A trigger with topics runs when the envelope has at least one of them. Add more items to **Topics** (up to 10) to run one flow for several topics.
- A trigger with no topics runs for every envelope, including envelopes without topics.
- An envelope with no topics never starts a trigger that has topics.

The topic must match exactly what the envelope was created with. This works for every SignatureAPI trigger, not only **When a deliverable is generated**.

## Continue the Flow

Now add the actions that follow the trigger.

1. Add the **Get a deliverable** action.
2. In **Deliverable ID**, select the trigger's **Deliverable ID** from the dynamic content.

![The Get a deliverable action with Deliverable ID set to the trigger's Deliverable ID](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/get-deliverable.webp)

Next, send an email to the sales team.

1. Add the **Send an email (V2)** action from the Office 365 Outlook connector.
2. In **To**, enter the team's address.
3. Fill in **Subject** and **Body**.
4. Under **Attachments**, attach the signed file: set the content to the **File Content** from **Get a deliverable**, and give it a name that ends in `.pdf`. This example uses the envelope ID as the file name.

![The Send an email (V2) action with the deliverable's File Content attached as a PDF named after the envelope ID](https://signatureapi.com/docs/integrations/power-automate/guides/images/powerautomate/filter-webhooks-flow/send-email.webp)

## Result

This flow runs only when a deliverable is generated for an envelope with the topic `sales_department`. It gets the signed document as a PDF and emails it to the sales team.

To route another department, copy the flow, change the topic in the trigger (for example `legal_department`), and change the **To** address.

## Test Your Automation

Test the full workflow:

1. Save your Power Automate flow and make sure it is turned on.
2. Create a new envelope with the topic `sales_department`, and complete it.
3. Check that the email arrives with the signed PDF attached, and that the run shows **Succeeded** in the flow's run history.
4. Create and complete an envelope without the topic, and check that the flow does not run.

If the flow doesn't run for the tagged envelope, compare the topic on the envelope with the one on the trigger, and check that the SignatureAPI connection uses the same API key mode (test or live) as the flow that created the envelope.

## Keep Learning

- Learn more about [Topics and Filters](https://signatureapi.com/docs/integrations/power-automate/envelopes/topics)
- Read about the [When a deliverable is generated](https://signatureapi.com/docs/integrations/power-automate/triggers/deliverable-generated) trigger
