DEV Community

Tech Community for Software AG Tech Community

Posted on • Originally published at tech.forums.softwareag.com on

Understanding filters in Office 365 triggers

This article explains how to use filters provided for Office365 triggers.

In Office 365 triggers you can use the Email and Subject filter to add a condition based on a particular email address or a particular subject term respectively.

image

You can click on the “Add Email” and “Add Subject” buttons to add filters.

Let’s see how to add filters for Email ids.

image

Once you click on Add Email button, you will see a field to add email ID.

Once you add the email ID inside the above Email ID field means, you are configuring the trigger to be executed when the email contains the mentioned Email ID.

And condition for Email ID.

image

To set AND condition click on the “Add Email ID’s” button, shown in the above screenshot.

In the above screenshot, we have set is an AND condition, where the trigger will execute only when the email has both the mentioned Email ID’s

OR condition for Email ID’s

To add an OR condition see the below image.

image

To add an OR condition click on the “Add Email” button on the above image.

image

The above screenshot depicts the example of the OR condition. The trigger will execute only either the email contains the email ID from Email Ids 1 or Email Ids 2.

Now let us see how to use the filter for both the Email ID and Subject field.

You can set a filter when you want the trigger to get executed if it has a particular Email ID and a particular subject.

For this, you would need to add an Email ID in the Email field and need to add Subject in the Subject field.

See the attached image:

image

Here we have set a condition, that the trigger will get executed when the email has john@example.com as one of the email IDs and the subject contains the word “demo” in it.

1 post - 1 participant

Read full topic

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!

Top comments (0)

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay