Skip to main content

Notifications

Power Automate - General Discussion
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

 

  • Verified answer
    Anchov Profile Picture
    Anchov 1,984 on at
    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
    RoberthCB on at
    Re: Query based on day difference in sharepoint

    Thanks, es for past date

  • Anchov Profile Picture
    Anchov 1,984 on at
    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,526

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard