cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JosephYates92
Regular Visitor

Sharepoint list to email, including specific date range

Hello!

I have a situation where employees utilize a Microsoft Form that I currently have a flow populating to a Microsoft/Sharepoint list.
I would like to take responses from the past week and have them emailed on a recurring basis to our supervisor team.

I've played around with this a bit and succeeded in getting the email to go out, but it ended up blank. I'm having trouble getting the email to go out and contain the data (either in HTML or attachment).

Ideally, this can be HTML table or an Excel attachment.
My apologies, I changed the flow around some in testing and don't have my original. I did try a couple different combos, including the following

JosephYates92_0-1638217291264.png

 




1 ACCEPTED SOLUTION

Accepted Solutions
AnthonyAmador
Community Support
Community Support

Hi @JosephYates92 

 

You can use the action "Create HTML Table" and attach it to the email. For example, I have this list. 

 

AnthonyAmador_0-1638308999297.png

 

The flow should look like this. 

AnthonyAmador_1-1638308999300.png

 

And this is the email that I received. 

 

AnthonyAmador_2-1638308999300.png

 

Now to filter the items and get only the ones created in the last week you can use this Filter Query in the "Get items" action. 

 

Created ge 'formatDateTime(addDays(utcNow(),-7),'yyyy-MM-dd')'

 

Should look like this. 

AnthonyAmador_3-1638310332215.png

 

Hope this helps. 

Kind regards. 

 

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

1 REPLY 1
AnthonyAmador
Community Support
Community Support

Hi @JosephYates92 

 

You can use the action "Create HTML Table" and attach it to the email. For example, I have this list. 

 

AnthonyAmador_0-1638308999297.png

 

The flow should look like this. 

AnthonyAmador_1-1638308999300.png

 

And this is the email that I received. 

 

AnthonyAmador_2-1638308999300.png

 

Now to filter the items and get only the ones created in the last week you can use this Filter Query in the "Get items" action. 

 

Created ge 'formatDateTime(addDays(utcNow(),-7),'yyyy-MM-dd')'

 

Should look like this. 

AnthonyAmador_3-1638310332215.png

 

Hope this helps. 

Kind regards. 

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 (4,321)