Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

How to obtain data of last 7 days

(0) ShareShare
ReportReport
Posted on by

I am trying to schedule an email of data posted of last 7 days. 

Trying to filter based on InqDate Field (which is a datetime field) in share point - But it getting failed,

Below is the error show and also screen shot main screen

 

 

MIA27_0-1658679050109.png

 

MIA27_1-1658679137726.png

 

below is share point column which I am reffering:

 

MIA27_2-1658679206267.png

 

 

Please advise correct way to write the requirement.

 

 

  • MIA27 Profile Picture
    on at
    Re: How to obtain data of last 7 days

    Dear Mr. Marco,

    Thank you for your advise.

    As advised I applied as below, still the error ,

     

    Below is the screen shot of error as well my applied method

    MIA27_0-1658685944195.png

     

    MIA27_1-1658686011253.png

     

    MIA27_2-1658686043116.png

     

     

    Please advise what correction to be done.

    Please note First I typed InqDate gt' 

    Then clicked on Formula button and type addDays(utcNow(),-7,'dd-MM-yyyy')

    then after return added at the end '

    I hope I have not made mistake, but confused if all the complete line to be written on formula bar, but the return is ok 17-0-2022

     

     

  • Verified answer
    MarconettiMarco Profile Picture
    3,812 Super User 2024 Season 1 on at
    Re: How to obtain data of last 7 days

    Hello @MIA27 ,

    you should put the expression in the "expression" bar:

    MarconettiMarco_0-1658682753572.png

     

    If I have answered your question, please mark your post as Solved.
    If you like my response, please give it a Thumbs Up.

    BR,

    Marco

     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492