cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
J0hn
Helper III
Helper III

Creating a flow to copy rows to an email based on a value in a specified column

Hello,

 

I am wanting to create a flow that takes rows and copy's them to an email body from an excel table based on a value in a column.

 

I have the below Table that shows 6 columns i want to send a manager a copy of only there employees based on the department code. So for example the manager for department code 200 would see John Young and John Does rows. I would have this reoccure every week.

Capture.JPG

 

Any help would be much appreciated, Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
v-bacao-msft
Community Support
Community Support

Hi @J0hn ,

 

Please consider using html table to display the filtered rows.

 

Please refer to the following method to configure Flow.

  • Initialize array variable to store HTML content, configure List rows present in a table to get all rows.
  • Use Condition to filter the rows with Department Code equal to 200 and append the rows to the array variable.
  • Finally configure HTML table and Send email action. Note that we need to set Is html field to Yes.

Tips: when configuring Condition, if the field type is Number, you don't need to use string() function.

Image reference:6.PNG

Details of Apply to each:

7.PNG

Please take a try.

 

Best Regards,

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
v-bacao-msft
Community Support
Community Support

Hi @J0hn ,

 

Please consider using html table to display the filtered rows.

 

Please refer to the following method to configure Flow.

  • Initialize array variable to store HTML content, configure List rows present in a table to get all rows.
  • Use Condition to filter the rows with Department Code equal to 200 and append the rows to the array variable.
  • Finally configure HTML table and Send email action. Note that we need to set Is html field to Yes.

Tips: when configuring Condition, if the field type is Number, you don't need to use string() function.

Image reference:6.PNG

Details of Apply to each:

7.PNG

Please take a try.

 

Best Regards,

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

This Worked Perfectly! Thank you for your help.Smiley Very Happy

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,894)