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 / Condition Expression: ...
Power Automate
Unanswered

Condition Expression: Modified < 30 seconds

(0) ShareShare
ReportReport
Posted on by 4

I need to create a condition that will do this:

If modified (the system field from a SharePoint list) < 30 seconds compare to current time, termiate the flow;

Else email user

 

I am stuck on writing the expression in the Condition. Any help would be greatly appreciated. 

Categories:
I have the same question (0)
  • Verified answer
    MattWeston365 Profile Picture
    1,701 on at

    Hi @iuchinglun this should do the trick

     

    If

    addSeconds(triggerBody()?['Modified'],30)
    is greater than or equal to
    utcNow()
    Then do your True actions
    Else do your False actions
     
    I have used the expression "addSeconds" which will allow me to take a datetime and add a number of seconds to it. It takes the format:
    addSeconds(DATETIME, NUMBER OF SECONDS)
     
    I have then just used utcNow() to get the current datetime stamp
     
    It might be worth considering that sometimes, especially when under load, Flow may take longer than 30 seconds to actually fire. But for now that should get you going.
  • iuchinglun Profile Picture
    4 on at

    Thank you. It works!

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard