web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : fLBh3I/O2lnAS20BKIskgX
Power Automate - Building Flows
Answered

Trigger email when condition is met

Like (0) ShareShare
ReportReport
Posted on 26 Jan 2023 09:50:38 by 10

Hi everyone,

 

I am wondering how can i trigger email using Power Automate when a trigger condition is met.

 

From the list below. which is uploaded in SharePoint, the trigger condition will be if Price Difference is greater or equal to 3, and it should automatically email to the address stated in column "Customer Email"

 

i.e. we should email to "BCD@gmail.com"since prince difference =3

ItemBuying PriceSelling PricePrice Difference (Buying Price - Selling Price)Customer Email
Apple422ABC@gmail.com
Orange413BCD@gmail.com

 

I have created the first step to use "When an item is created or modified" and created the trigger condition, can any folks here advise the next step? Thanks!!!

mikechan1234_0-1674726445232.png

mikechan1234_1-1674726564103.png

 

I have the same question (0)
  • Expiscornovus Profile Picture
    32,891 Most Valuable Professional on 26 Jan 2023 at 10:11:07
    Re: Trigger email when condition is met

    Hi @mikechan1234,

     

    Are you using a calculated column for the Difference column? If so, how what is the returned data type, single line of text?

     

    Btw, if you say it needs to be greater or equal to 3 I would suggest to use the greaterOrEquals function in your expression as well.

     

    If you are returning it as string I would suggest to try:

    @greaterOrEquals(triggerOutputs()?['body/Difference'], '3')

     

    returning_data_calculated.png

  • mikechan1234 Profile Picture
    10 on 26 Jan 2023 at 12:44:03
    Re: Trigger email when condition is met

    Hi @Expiscornovus ,

     

    Thanks for your reply!!

     

    It should be a single line of text, as the calculation formula will be removed when exporting excel to sharepoint as a list. 

     

    But what should be the next step, should use Send an email (V2) and  put Customer Email in To? The error message pop out and stop me from saving my flow

    mikechan1234_2-1674736931728.png

     

     

     

     

     

     
  • Verified answer
    Expiscornovus Profile Picture
    32,891 Most Valuable Professional on 26 Jan 2023 at 16:04:41
    Re: Trigger email when condition is met

    Hi @mikechan1234,


    Yes, it should be possible to use the Customer Email field directly in the To.

     

    What type of field did you use for the Customer Email field? In the screenshot it looks like you used a different field called Mail Address. The error suggests that field you used is not a string but maybe of type hyperlink?

     

    1. The flow setup

     

    customeremail_to.png

    2. The Customer Email column setting

     

    datatypecustomeremail.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 655 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 371 Moderator

#3
chiaraalina Profile Picture

chiaraalina 276

Last 30 days Overall leaderboard
Loading complete