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

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
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
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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (8,354)