cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dgeorge318
Level: Powered On

Report Teams to Owners

I've built a SharePoint list of all the teams in my organization and their owners.  I'm trying to create an email digest for each owner of the teams that they own.

 

For Example:  

Snip.PNG

 

I'd like each owner to get a single email detailing the teams that they own.  We'll be using this to alert them as teams go stale or have major changes that they need to be alerted on.

 

I've gone so far as to make another SharePoint list of unique owners to try and get a comparison list going.

 

Any thoughts or ideas?  Greatly appreciated.

 

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: Report Teams to Owners

Hi @Dgeorge318 ,

 

You could consider using Recurrence as the trigger, then execute the Flow every other month and pass the team information to the Owner.

Use Get items to traverse all the items, nesting an Apply to each to traverse all the owners contained in the current item.

Edit the information that needs to be included in the email and configure the Owner's email address in the To field.

Image reference:

27.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.
Dgeorge318
Level: Powered On

Re: Report Teams to Owners

Thanks Barry,

But wouldn't that still create an email for each team? If a person owned 15 teams, they'd get 15 emails.

I'd like the owner of 15 teams to get 1 email with the details of the 15 teams.

And if a team had multiple owners, I still want each owner to receive the email once.

I'm responding from my phone or I'd get some screenshots.

I'm guessing I need to parse the list for the owners and get the unique owners, then go through the list of teams for each unique owner and look where they match the managedby field and generate the data from there.

Appreciate your input.

Daniel
Dgeorge318
Level: Powered On

Re: Report Teams to Owners

@v-bacao-msft 

 

So I've added a second list with the unique owners on it.  I'm parsing the list of owners and trying to compare it to the list of managedby.  In my filter if I do item()?['managedby'][0]?[Email] and the owneremail is the first in the list, it works.  Which I'm assuming is because it can query the array and only get the single member back to validate against and that makes it happy.  

 

Could I do an apply to each item()?['managedby'] and build the number of times it needs to iterate through the list?

 

I'm using http://johnliu.net/blog/2018/6/do-group-by-in-flow-with-two-simple-elegant-loops as a reference for a piece of the puzzle.

 

flow1.jpgflow2.jpgflow3.jpg

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 283 members 1,984 guests
Please welcome our newest community members: