web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / weekly get newly enter...
Power Automate
Answered

weekly get newly entered data in sharepoint list and send email

(0) ShareShare
ReportReport
Posted on by 14

Hi All,

So, I am trying to create a flow that will check a SharePoint list every week on Friday and send an email if there is any new items that have been added that week. It should be able to send those newly added items via email.

Anyway that can be done?

 

Thanks.

Cedric

Categories:
I have the same question (0)
  • Verified answer
    HenWang Profile Picture
    Microsoft Employee on at

    Hi @crugamba ,

     

    Please refer to my below demo flow:

    HenWang_0-1683688699320.png

    1. Recurrence trigger:

    HenWang_1-1683688720948.png

     

    2. Get items action:

    HenWang_2-1683688757349.png

     

    add filter query here:

    Created gt 'expression'

    For the expression part, please use below furmula:

    addDays(startOfHour(utcNow()),-5)

    HenWang_3-1683688838597.png

     

    4.Condition:

    HenWang_4-1683688874498.png

     

    Expression:

    length(outputs('Get_items')?['body/value'])

    5.Create HTML table: select the value dynamic content like below snap

    HenWang_5-1683688923872.png

     

    6. In the email to be sent, please just add the HTML table dynamic content:

    HenWang_6-1683688980699.png

     

     

    Best Regards,

    Hen Wang

  • crugamba Profile Picture
    14 on at

    Thank you, Hen. 

    This was exactly what I needed.

    But I'm running into an issue when I test the flow. 

    It's giving me this error at the Get items level: 
    The expression "Date Submited gt '2023-05-05T07:00:00.0000000Z'" is not valid. Creating query failed.
    clientRequestId: 0ee137cc-b806-4bd7-a1e8-7561091b204b
    serviceRequestId: 0ee137cc-b806-4bd7-a1e8-7561091b204b

     

    I'm guessing it has to do with the way the date is saved in my list maybe:

    crugamba_0-1683705001992.png

    How can I fix the error?
    Thanks again for your flow btw.

  • HenWang Profile Picture
    Microsoft Employee on at

    Hi @crugamba ,

     

    Please use below expression inside your filter query:

    formatDateTime(addDays(utcNow(),-5), 'yyyy-MM-dd')

     

    Best Regards,

    Hen Wang

  • crugamba Profile Picture
    14 on at

    Unfortunately, it didn't work.
    I even changed the expression to the exact same date format as the one in my file but still throwing an error.

    Here is the expression I set:

    formatDateTime(addDays(utcNow(),-5), 'MM/dd/yyyy')
    Here is the error:

    The expression "Date Submited gt '05/05/2023'" is not valid. Creating query failed.
    clientRequestId: 14aed01b-d57f-47f9-9bee-0d53a5f94fdf
    serviceRequestId: 14aed01b-d57f-47f9-9bee-0d53a5f94fdf

  • HenWang Profile Picture
    Microsoft Employee on at

    Hi @crugamba ,

     

    I think it's related to your field logic name, please go to your list and click setting icon (gear icon) on top right side and click list setting:

    HenWang_0-1683712268685.png

     

    Then you need to find the column you want to compare and click on it:

    HenWang_1-1683712303220.png

     

    Then in the URL of browser, you will find its real name after the FieldId=:

    HenWang_2-1683712374150.png

     

    For me, it's submitdate here, please check it from your side and use it instead of "Submit Date".

  • crugamba Profile Picture
    14 on at

    It's working perfectly now! 

    Thank you! Your help was very appreciated!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard