cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
Solution Specialist
Solution Specialist

@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
Solution Specialist
Solution Specialist

@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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (15,430)