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 / If Sub before a time t...
Power Automate
Unanswered

If Sub before a time this then that

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I'm trying to send a specific email if the submission occurs prior to 1 pm EST and if it is submitted AFTER 1 pm another message will be sent. 

 

Essentially, if a user submits a request prior to 1 PM the team will get to it the same day; but if it is AFTER 1 pm it will be done before 1 pm the following day

 

I don't know how to do this condition on flow

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,846 Most Valuable Professional on at

    Hi @Anonymous,

     

    You could use an expression and format the datetime field with the HH (24 hour format). You can check if it is less than 13. If that is the case it will be processed today.

     

    Below is an example of that approach:

    In my example I used the utcNow function. Replace that by your datetime field and use for example the formatdatetime instead.

    if(less(utcNow('HH'),'16'), 'Today', 'Tomorrow')

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Could I see an example? I don't know exactly on what action this would go? And do I have to format the time prior to?

  • Expiscornovus Profile Picture
    33,846 Most Valuable Professional on at

    Hi @Anonymous,


    Can you share a screenshot of your current flow setup? This way I can adapt an example to your specific situation.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    itonijd_0-1661272842115.png

     

  • Expiscornovus Profile Picture
    33,846 Most Valuable Professional on at

    Hi @Anonymous,

     

    In your setup it would be something like:

    less(formatdatetime(outputs('Get_response_details')?['body/submitDate'], 'HH'),'13')

    is equal to 

    true

     

    Btw, you might need to update the 13 to a different number because it looks like submission time (submitdate) of Microsoft Forms is UTC and not your time zone. So, definitely double check that.

     

    lessthan13hours.PNG

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

Haque 607

#2
Valantis Profile Picture

Valantis 456

#3
11manish Profile Picture

11manish 352

Last 30 days Overall leaderboard