How to Send Email Using If Condition in Power Automate

Have you ever used if condition(s) while sending an email within the Power Automate? Well, this Power Automate Tutorial guides you, on how to send an email notification based on Power Automate If conditions. Also, we will see how to send an email notification using multiple if conditions.

Create Cloud Flow in Power Automate to Send Email Using If Condition

Recently, we got a requirement from one of our clients to send emails based on if condition using Power Automate. They want to notify the in-charge person via email if the availability of wallpaper is not equal to 0.

To meet the requirement, we have created an automated cloud flow that will send an email notification if the condition matches. Let us see how to send emails using the if condition in Power Automate.

  • Open a Power Automate home page -> Click on Create -> Click on Automated cloud flow.
Power Automate Send Email Using If Condition
Power Automate Send Email Using If Condition
  • In this Build an automated cloud flow window, click on Skip (or select the trigger ‘When an item is created‘ and click on Create).
Using If Condition Create a Power Automate Flow
Using If Condition Create a Power Automate Flow
  • In this window, navigate and search when an item is created (Trigger) and select it.
  • In this trigger section, select Site Address and List Name you want to use. I have chosen the Site Address: Mitchell Black and List Name: Wallpapers -> Click on +New steps.
If Condition To Send an Email in Power Automation
If Condition To Send an Email in Power Automation
  • Navigate to the search box, search Condition, and then select Condition under Actions
How power automation sends email using if condition
How power automation sends email using if condition
  • In this Condition, choose the value. I have chosen Wallpaper Is Available when it is not equal to 0.
Create Power Automate Cloud Flow Using If Condition
Create Power Automate Cloud Flow Using If Condition
  • Here, in the If yes part, click on Add an action.
Power Automate Sends Email Using If Condition
Power Automate Sends Email Using If Condition
  • Navigate to the search box and search Send an email -> Select Send an Email (V2) under Actions.
Create Cloud Flow Using If Condition
Create Cloud Flow Using If Condition
  • In this Send an email (V2) window, insert the below-listed options.
    • To: Insert the email of the person who is going to receive the email when the wallpaper is available or unavailable.
    • Subject: Here, I have used the Wallpaper name underlying the dynamic content.
    • Body: You can write the email that will be sent when the wallpaper is available or unavailable, if want you can use dynamic content as I do.
Power Automate Cloud Flow Sends Email Using If Condition
Power Automate Cloud Flow Sends Email Using If Condition
  • Similarly in the If No section, follow the above steps same as in the If Yes section. Only change the Subject that Wallpaper is currently not available as shown below.
How to Use If Condition in Power Automate Cloud Flow
How to Use If Condition in Power Automate Cloud Flow
  • Now, click on Save, and you can see a message saying Your flow is ready to go. We recommend you test it -> Click on Test.
Send Email Using If Condition in Power Automate Flow
Send Email Using If Condition in Power Automate Flow
  • In this Test Flow window, select Manually -> Click on Test.
Power Automate Flow Send Email Using If Condition
Power Automate Flow Send Email Using If Condition
  • At the top of the window, you will see this message To see it work now, add a new list item to the SharePoint folder you selected.
How Power Automate Send an Email Using If Condition
How Power Automate Send an Email Using If Condition
  • Open a SharePoint Online List that we selected -> Click on + New -> Click on Item.
Power Automate Cloud Flow Using If Condition Send an Email
Power Automate Cloud Flow Using If Condition Send an Email
  • In this New item window, insert all the required values as shown below -> Click on Save.
Create Power Automate Cloud Flow If Condition to Send Email
Create Power Automate Cloud Flow If Condition to Send Email
  • Go back to the flow window, here you will see the message that Your flow ran successfully.
How Using If Condition Send Email in Power Automate Flow
How Using If Condition Send Email in Power Automate Flow
  • Now, open Outlook and you can see the email has been received as shown below.
Power Automate Send an Email Using If Condition
Power Automate Send an Email Using If Condition

This is how we can create cloud flow in Power Automate to send emails using the if condition.

Also, Read: How to Send an Email Notification When an Item is Deleted via Power Automate

Power Automate Send Email Using If Multiple Conditions

In this section, we will see how to send emails using the multiple if conditions in Power Automate. That is, if the floormat count is less than 50, then it will check whether it is available for dispatch or not. If it is available, it will notify the sales team via Outlook email.

  • Open a Power Automate home page -> Click on Create -> Click on Automated Cloud flow.
Power automate Send Emails Using If Multiple Conditions
Power Automate Send Emails Using If Multiple Conditions
  • Now, in the Build an automated cloud flow window, click on Skip.
How Power Automate Send an Email Using If Multiple Conditions
How Power Automate Send an Email Using If Multiple Conditions
  • In this window, navigate and search When an item is created -> Now, select When an item is created under Triggers
Send Email Using If Multiple Conditions in Power Automate
Send Email Using If Multiple Conditions in Power Automate
  • In this trigger section, select Site Address and List Name you want to use. I have chosen the Site Address (Mitchell Black) and List Name (Floormat) -> Click on +New steps.
Using If Multiple Condition to Send Email in Power Automate
Using If Multiple Condition to Send Email in Power Automate
  • In this Condition pane, insert the value required as Floormat Quantity Available is less than 50 -> Click on + New steps.
Power Automate Cloud Flow Send Email Using Multiple If Conditions
Power Automate Cloud Flow Send Email Using Multiple If Conditions
  • In this If yes section, click on + Add an action.
Create Power Automate Cloud Flow Using If Multiple Conditions
Create Power Automate Cloud Flow Using If Multiple Conditions
  • In this window, click on Conditions as shown below.
Power Automate Flow Using Multiple If Conditions
Power Automate Flow Using Multiple If Conditions
  • In this Condition 2 window, I have taken Floormat Is Available is equal to Not Available.
Create Flow in Power Automate Using If Multiple Conditions
Create Flow in Power Automate Using If Multiple Conditions
  • In Condition 2’s, If yes section click on Add an action.
Power Automate Create Cloud Flow Using If Multiple conditions
Power Automate Create Cloud Flow Using If Multiple conditions
  • Navigate to the search box and search Send an Email -> Select Send an Email (V2).
Send Email using If Conditions in Power Automate Cloud Flow
Send Email using If Conditions in Power Automate Cloud Flow
  • In this Send an email (V2) 3 window, insert the value required as listed below.
    • To: Insert the Email Address of the person who will receive the email.
    • Subject: Here, write the subject for the email.
    • Body: In this part, you have to write a message related to the subject.
Power Automate Send an Email Using Multiple If Conditions
Power Automate Send an Email Using Multiple If Conditions
  • Similarly, follow the steps same as Condition 2’s If yes section to Add an action and enter the required values as shown below.
How to Send an Email Using If Multiple Conditions
How to Send an Email Using Multiple Conditions
  • Similarly, follow the same steps in the If no section (Condition 2) to Add an action. Here, in the If no section, I have taken Floormat Is Available is equal to Available.
Multiple Conditions Used in Power Automate Flow
Multiple Conditions Used in Power Automate Flow
  • In this If yes section of Condition 3, click on + Add an action.
Add If Multiple Conditions in Power Automate Flow
Add If Multiple Conditions in Power Automate Flow
  • Navigate to the search box and search Send an Email -> Select Send an Email (V2).
How to Add If Multiple Conditions in Power Automate
How to Add If Multiple Conditions in Power Automate
  • In this Send an email (V2) 3 window, insert the value required as listed below.
  • To: Insert the Email Address of the person who will receive the email.
  • Subject: Here, write the subject for the email.
  • Body: In this part, you have to write a message related to the subject.
Power Automate Send an Email Using if Multiple Conditions
Power Automate Send an Email Using If Multiple Conditions
  • Similarly, in the If no part, follow the same steps as in the If yes section above and insert the required value as shown below.
How to Send Email Using If Multiple Conditions in Power Automate
How to Send Email Using If Multiple Conditions in Power Automate
  • Click on Save -> Click on Test.
Using Multiple If Conditions in Power Automate
Using Multiple If Conditions in Power Automate
  • In this Test flow window, select Manually -> Click on Test.
Power Automate Cloud Flow Send an Email Using If Multiple Conditions
Power Automate Cloud Flow Send an Email Using If Multiple Conditions
  • Now, open a SharePoint Online List home page -> Click on + New -> In this New item window, insert the required values -> Click on Save.
Create Cloud Flow Using If Multiple Conditions
Create Cloud Flow Using Multiple Conditions
  • Now, you see the message that Your flow ran successfully.
Multiple If Conditions in Power Automate
Multiple If Conditions in Power Automate
  • Open Outlook 365, and you will see the email received according to the flow conditions.
Power Automate Flow Send an Email Using If Multiple Conditions
Power Automate Flow Send an Email Using If Multiple Conditions

This is how Power Automate Sends Email Using Multiple If Conditions.

You might like these most-searched Power Automate Tutorials:

Conclusion

Here we have learned about Power Automate sending emails using the if condition in this Power Automate tutorial. Also, we have covered how Power Automate Sends Email Using Multiple If Conditions.