Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Maile merge flow

(0) ShareShare
ReportReport
Posted on by

Hi everyone,

 

I am in the middle of trying to build flow which triggers a mail merge when a teacher has written some feedback in a row.  I am aware that I need to pass only the rows which trigger the condition down the chain but I can't quite work out how to do it.

Any help would be appreciated. Currently, the Flow below emails all of the students and writes Done! in all of the rows, but I just want it to send emails from the rows which have feedback in.

 

Thank you in advance,

 

Iain 

First, it gets rows.

get rows.PNG

Then it checks if 'Feedbackcheck' cell contains 'Done!'. If it does, then do nothing.

 If yes do nothing.PNG

If it doesn't, it checks 'Feedback column'.

 Send and email and update row.PNG

If that is not empty, then send an email and update the row.

 Send and email and update row.PNG

  • Community Power Platform Member Profile Picture
    on at
    Re: Mail merge flow

    Hi Barry,

     

    It works! Thank you!

     

    So it was really the 

    @empty(items('Apply_to_each')?['Feedback'])

    which I didn't really get. 

     

    So is this what it does?

    @look for empty (which things?(what array?) [which column?]

     

    Best,

    Iain

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Maile merge flow

    Hi @Anonymous,

     

    I have made a test on my side and the flow works well. Please take a try with the following workaround.

    You mentioned "Then it checks if 'Feedbackcheck' cell contains 'Done!'. If it does, then do nothing.", so the first condition may need to use contains instead of equals to.

    Then use the expression -empty() function in the advanced mode of the second condition to determine if the Feedback column contains a value.

    Expression: 

    @empty(items('Apply_to_each')?['Feedback'])

    Finally, by populating Email Dynamic content  in the Send email action, you could send the email to the email corresponding to the row containing the value in the Feedback column.

    22.PNG

    23.PNG

    Please take a try.

     

    Best Regards,

    Barry

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1