Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 23wFUuUEn+5sr5W9v9TT9Y
Power Automate - General Discussion
Answered

Query based on day difference in sharepoint

Like (0) ShareShare
ReportReport
Posted on 5 Jan 2024 20:20:34 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

 

  • Verified answer
    Anchov Profile Picture
    1,984 on 05 Jan 2024 at 21:00:19
    Re: Query based on day difference in sharepoint

    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

     

  • RoberthCB Profile Picture
    on 05 Jan 2024 at 20:38:05
    Re: Query based on day difference in sharepoint

    Thanks, es for past date

  • Anchov Profile Picture
    1,984 on 05 Jan 2024 at 20:36:00
    Re: Query based on day difference in sharepoint

    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)?

     

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

Thomas Rice – Community Spotlight

We are honored to recognize Thomas Rice as our March 2025 Community…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,508 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,369 Most Valuable Professional

Leaderboard