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

If Sub before a time this then that

(0) ShareShare
ReportReport
Posted on by

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,195 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
    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,195 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
    on at

    itonijd_0-1661272842115.png

     

  • Expiscornovus Profile Picture
    33,195 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

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

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard