How to Send Email Using If Condition in Power Automate?

While working with Power Automate, I only needed to send an email if certain conditions were met. This is where the If condition comes in handy. It lets you check if something is true or false and, based on that, decide whether to send an email. For example, you could set up a flow to send an email only if a request is approved or a specific value is reached. It’s a simple way to make your automation smarter and only send emails when needed.

In this tutorial, I will show you how to send email using If condition in Power Automate. I will also explain how to send an email based on a field value using Power Automate.

Send Email Using If Condition in Power Automate

I have a SharePoint list called Task Tracker with a column named Due Date that records the deadline for each task. If the Due Date is blank, I want to email the assigned person, letting them know the task hasn’t been given a deadline yet.

Send Email Using If Condition in Power Automate

Now follow the below steps:

1. Navigate to the Power Automate Home page, click + Create, and select the Scheduled Cloud Flow. Then provide the following information:

  • Starting: Provide on which date you want to run your flow.
  • at: Provide the time you want to run the flow, in my case, at 9:00 AM.
  • Repeat every: We want to run the flow daily.
Send Email Using If Condition using Power Automate

2. Then add the Get items action to retrieve the item in the SharePoint list and provide the below parameters:

  • Site address: Select a specific site address from the drop-down.
  • List Name: Select a specific list from the drop-down.
power automate send email based on condition

3. Add the Condition action to check whether the task’s Due Date is null.

In the Condition action, set the condition to check if the Due Date (from the Get items action) is equal to null.

power automate send email when condition is met

4. Then, Add the Send an email action inside the true section and provide the below parameters:

  • To: Assigned To email address from the dynamic content.
  • Subject: Task Deadline Not Set.
  • Body: Provide an email body.
power automate if statement in email body

Now, save the flow and run it manually. After the flow runs successfully, you will see that the assigned people receive an email.

How to Send Email Using If Condition in Power Automate

Send an Email Based on Field Value using Power Automate

I am using the same SharePoint list Task Tracker, where you notice each task has a “Status” field with values such as “In Progress,” “Completed,” and “Pending.” Based on the task status, I want to send an email notification to the assigned person.

For example:

  • If the status is “Pending,” send a reminder email to follow up on the task.
  • If the status is “In Progress,” email the task owner to notify them of the ongoing task.
  • If the status is “Completed,” send a different email congratulating them on finishing the task.

To do this, follow the below steps:

1. Create an automated cloud flow. Give the flow name and select the trigger When an item is created or modified. Also, provide the Site Address and List Name.

power automate if multiple conditions

2. As you can see, I will use a switch condition when there are multiple conditions.

Add a Switch control flow action. Provide the below parameter:

By default, it displays with the Add Case icon and Default section.

power automate if condition

3. Click + Add case to add the first case. Manually enter the value Pending inside the parameter.

power automate send email notification

4. Then, Add the Send an email action and provide the below parameters:

  • To: Assigned To email address from the dynamic content.
  • Subject: Task Pending Reminder.
  • Body: Provide an email body.
how to create power automate flow to send email

5. Click + Add case to add the second case. Manually enter the value Low inside the parameter.

power automate multiple if statements

6. Then, Add the Send an email action and provide the below parameters:

  • To: Assigned To email address from the dynamic content.
  • Subject: Task in Progress.
  • Body: Provide an email body.
power automate if expression multiple conditions

7. Again, click + Add case to add the third case. Manually enter the value Completed inside the parameter. Then add a send an email action.

how to use power automate to send emails

Now click on Save and run the Flow manually. Once the flow runs, modify the status column.

power automate send email with options

After the flow runs successfully, you can see that assigned people can get an email.

How to Send an Email Based on Field Value using Power Automate

In this tutorial, I covered how to send an email based on specific conditions in Power Automate. First, I showed how to send an email if a SharePoint list field, like the “Due Date,” is blank using an If condition. Then, I explained how to send different emails based on the value of the “Status” field in the same list, using a Switch condition.

Related Power Automate articles:

>

Build a High-Performance Project Management Site in SharePoint Online

User registration Power Apps canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App

Power Platform Tutorial FREE PDF Download

FREE Power Platform Tutorial PDF

Download 135 Pages FREE PDF on Microsoft Power Platform Tutorial. Learn Now…