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
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,173)