Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Error using trigger conditions - date column SharePoint.

(0) ShareShare
ReportReport
Posted on by 7

Hi, I would like my flow only to trigger if a date column in Sharepoint i past 30 days. I am trying to use this as a trigger condition, but only getting errors: @lessOrEquals(triggerOutputs()?['body/Dato'], getPastTime(30, 'Day')). Any  help would be most appreciated!

  • Lassehkr Profile Picture
    7 on at
    Re: Error using trigger conditions - date column SharePoint.

     

     
  • Lassehkr Profile Picture
    7 on at
    Re: Error using trigger conditions - date column SharePoint.

    Thank you so much for this, super helpful! It worked perfectly. 

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 1 on at
    Re: Error using trigger conditions - date column SharePoint.

    Hi @Lassehkr 

     

    Pls try using the below expression as trigger condition:

    @lessOrEquals(addDays(triggerOutputs()?['body/Dato'], 30, 'yyyy-MM-dd'), utcNow('yyyy-MM-dd'))

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

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 >