cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iuchinglun
Frequent Visitor

Condition Expression: Modified < 30 seconds

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. 

1 ACCEPTED SOLUTION

Accepted Solutions

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.




Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

2 REPLIES 2

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.




Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

Thank you. It works!

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (38,724)