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 / Query based on day dif...
Power Automate
Answered

Query based on day difference in sharepoint

(0) ShareShare
ReportReport
Posted on by

Hello

I'm looking for a way to get the RegistrationDueDate (Sharepoint list) field with condition approbal and RegistrationDueDate - utcnow() le 30 days in the query for the get items to return the list but I can't find a way,

Thank you very much for the help

Annex the screen prints

 

Thanks a lot

 

RoberthCB_0-1704485882962.pngRoberthCB_1-1704485929308.png

 

Categories:
I have the same question (0)
  • Anchov Profile Picture
    1,986 on at

    You will need to write an expression. But first a question:
    Do you want the expression to calculate the date 30 days from UTC (future date) or 30 days ago (past date)?

     

  • RoberthCB Profile Picture
    on at

    Thanks, es for past date

  • Verified answer
    Anchov Profile Picture
    1,986 on at

    Then your filter would need to be configured like

     

     

    (Approbal eq 'Approved') and (RegistrationDueDate le '@{addDays(utcNow(),-30, 'yyyy-MM-dd')}')

    Example:

    Anchov_3-1704488543168.png

     


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

    Cheers!
    Rick Hurt

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 378 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 273 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 135 Most Valuable Professional

Last 30 days Overall leaderboard