cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IainCONeill
Level: Powered On

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
Community Support Team
Community Support Team

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.
2 REPLIES 2
Community Support Team
Community Support Team

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.
IainCONeill
Level: Powered On

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

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020

thirdimage

Flow Community User Group Member Badge

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

fifthimage

Microsoft Learn

Learn how to build the business apps that you need

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 173 members 4,763 guests
Recent signins:
Please welcome our newest community members: