cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Maile merge flow

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

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Maile merge flow

Hi @IainCONeill,

 

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

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Highlighted
Community Support
Community Support

Re: Maile merge flow

Hi @IainCONeill,

 

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

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
Frequent Visitor

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

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (6,910)