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 / 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
    12,966 Super User 2025 Season 2 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
    12,966 Super User 2025 Season 2 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
    12,966 Super User 2025 Season 2 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

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 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard