web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Error using trigger co...
Power Automate
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!

Skjermbilde 2023-10-15 172453.png
Categories:
I have the same question (0)
  • Verified answer
    Manish Solanki Profile Picture
    15,167 Moderator on at

    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

  • Lassehkr Profile Picture
    7 on at

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

  • Lassehkr Profile Picture
    7 on at

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 600

#2
Valantis Profile Picture

Valantis 453

#3
11manish Profile Picture

11manish 356

Last 30 days Overall leaderboard