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

Only send items owned by user when generating HTML table

I've created a flow to run once a week that checks for items that are "Overdue". This generates a table of the items, showing detail/id/owner etc.

 

This table is then sent out to all the people within the list that have an overdue item. I've been asked if this can be changed so the table only shows the items they own that are overdue. 

 

Below is my flow for this.
table flow.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And the output generated.


table output.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

So each item owner would get a table as above, but only showing themselves/their own items.


Thanks

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Re: Only send items owned by user when generating HTML table

Hi @aobr31569 ,

 

What can be done now is to send each owner the item they own for meet the conditions.

It seems that you have configured Filter Query in Get items to filter the eligible items.

 

You could first group by Owner, then filter out the items they own, and then create an HTML table.

 

The troublesome point here is that when configure Create HTML table action, there may be no direct Dynamic content to use, because the data filtered by Filter array is used as the Data Source.

You need to get the value of the corresponding field through Expression. Basically it is the form of item()[‘ColumnName’]. You could configure the Expression by selecting the name of the field inside Body after Get items action.

9.PNG

Image reference:10.PNG

 

11.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

Re: Only send items owned by user when generating HTML table

Hi @aobr31569 ,

 

What can be done now is to send each owner the item they own for meet the conditions.

It seems that you have configured Filter Query in Get items to filter the eligible items.

 

You could first group by Owner, then filter out the items they own, and then create an HTML table.

 

The troublesome point here is that when configure Create HTML table action, there may be no direct Dynamic content to use, because the data filtered by Filter array is used as the Data Source.

You need to get the value of the corresponding field through Expression. Basically it is the form of item()[‘ColumnName’]. You could configure the Expression by selecting the name of the field inside Body after Get items action.

9.PNG

Image reference:10.PNG

 

11.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

aobr31569
Frequent Visitor

Re: Only send items owned by user when generating HTML table

Works perfectly, thanks very much.

Helpful resources

Announcements
firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

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!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (8,250)