cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jmora284
New Member

Automate employee full schedule in one email per employee?

Hello, I am currently working on creating a scheduler using SharePoint. The flow I created uses a string to retrieve my list items.

Jmora284_0-1603136226505.png

 

Jmora284_1-1603136226523.png

 

Once it does, the list items get sent into an email which looks like this.

Jmora284_2-1603136226550.png

 

 

The issue with this flow is that it retrieves the entire SharePoint list. I am trying to filter out what gets put in the email. I would only like one email per employee full schedule. For example, I would like one email just containing Jennifer Bender schedule, one email containing Adelle Mantle schedule, etc. I created a column based on employee id (Full Name:ID), I also enforced a unique value on it.

 

Is it possible to use the employee id to filter out employee schedules? Using Jennifer Bender as an example, what would be the best way to filter her schedule out, then have her entire schedule sent inside one email? Would it be applicable to the rest of the employees as well?

Jmora284_3-1603136226555.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
PrasadAthalye
Super User
Super User

@Jmora284 - There are 2 ways to do it.

First One

I am not sure from where the data is sourced from but if employee list is static, can you create another list that just have employee names and Ids like a master? Then you can getitems on that list first and run a loop there.

Then you can filter this scheduler list based on employeename or id which will give you only records for that employee which you can compile in a string. Then finally send email and proceed to next employee.

 

Second One

See if you can Generate a group by logic as per below solution

https://powerusers.microsoft.com/t5/Building-Flows/Group-BY-in-Flow-to-send-email-of-aggregated-data...

 

Like and Mark this as solution if it resolves your issue.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

1 REPLY 1
PrasadAthalye
Super User
Super User

@Jmora284 - There are 2 ways to do it.

First One

I am not sure from where the data is sourced from but if employee list is static, can you create another list that just have employee names and Ids like a master? Then you can getitems on that list first and run a loop there.

Then you can filter this scheduler list based on employeename or id which will give you only records for that employee which you can compile in a string. Then finally send email and proceed to next employee.

 

Second One

See if you can Generate a group by logic as per below solution

https://powerusers.microsoft.com/t5/Building-Flows/Group-BY-in-Flow-to-send-email-of-aggregated-data...

 

Like and Mark this as solution if it resolves your issue.

Please Like and Mark this as Answer if it resolves your Issue.

Power Automate Community

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Kudoed Authors
Users online (3,276)