Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Value Condition, Created Time and Limits for Completing Actions

(0) ShareShare
ReportReport
Posted on by 629

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?

  • David_MA Profile Picture
    11,517 Super User 2025 Season 1 on at
    Re: Value Condition, Created Time and Limits for Completing Actions

    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. 🙂

  • jamescosten Profile Picture
    629 on at
    Re: Value Condition, Created Time and Limits for Completing Actions

    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
    11,517 Super User 2025 Season 1 on at
    Re: Value Condition, Created Time and Limits for Completing Actions

    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.

  • David_MA Profile Picture
    11,517 Super User 2025 Season 1 on at
    Re: Value Condition, Created Time and Limits for Completing Actions

    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.

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492