cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

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

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

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

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

Highlighted
Helper II
Helper II

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

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

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 (5,565)