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

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

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.

Works perfectly, thanks very much.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (2,566)