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 / Value Condition, Creat...
Power Automate
Unanswered

Value Condition, Created Time and Limits for Completing Actions

(0) ShareShare
ReportReport
Posted on by 643

I have a need for a flow to check a SP column value and depending on this value set a time constraint that can then trigger a condition. Easier if I show an example.

 

If the Value is AM then the created time of the Item in SP needs to be before 08:00am else another action. If the item was created before 08:00 on that day then no other action required.

 

This is for facility checks needing to be conducted within an hour of their shift time.

 

My column is a choice and i have 5 selections, each with their own times.

 

0700 AM

0800 OFFICE

0830 FACILITY 1

1500 PM

2300 NIGHTS.

 

Any idea how I could put this into a flow? I can put parralel branches with Conditions for each area, but how would I set the condition of the time?

Categories:
I have the same question (0)
  • David_MA Profile Picture
    14,347 Super User 2026 Season 1 on at

    I would use the formatDateTime function to format just the hours of the Created date in 24-hour format and convert it to an int: 

    int(formatDateTime(triggerOutputs()?['body/Created'],'HH'))

    You could use the expression in a condition to check if the result is less than or greater than 8 depending on which side of the condition you want to proceed. I am not sure how the five choices relate to the need to check if the time is before 8 a.m. though.

  • David_MA Profile Picture
    14,347 Super User 2026 Season 1 on at

    P.S. don't forget that SharePoint stores dates in UTC format, so you may need to convert the created date/time to another time zone first and use the expression on the converted date.

  • jamescosten Profile Picture
    643 on at

    Thank you, Annoyingly I will also need to account for DST also. Assuming there is a way to take this into account in the UK?

  • David_MA Profile Picture
    14,347 Super User 2026 Season 1 on at

    From my understanding, when you convert a time zone in Power Automate and specify the source and destination time zones, it takes into account daylight savings time and adjusts accordingly. I never did any testing on this, but nobody has complained to me about it yet. 🙂

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
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard