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 / Which function or conf...
Power Automate
Unanswered

Which function or configuration can be use to post messages on email arrival in between a time frame?

(0) ShareShare
ReportReport
Posted on by 2

hey community,

 

I'm building a flow to post a message into a Teams channel, however, I'm struggling when I'm using a condition to check if the email was received in between some time frames, so my example goes like this:

  • if the email is received in between 9:00am to 17:59 pm post a message, if time is not on this time frame, go to false
  • if the email is received in between 18:00pm to 1:59am of the next day post another message, if this condition is not satisfied, got to false
  • if the email is received in between 2:00am to 8:59am post a message

So as you can see I have three conditions to be considered based on email time arrival, already used Copilot and got the same schema that I built manually but still not working even with Copilot's suggestion to be used on my conditions.

Not quite sure if Power automate can actually validate a time frame to be in a range of time.

My own flow.

CarlosG_0-1716599510569.png

CarlosG_1-1716599538002.png

Copilot's suggestion.

CarlosG_3-1716599679961.png

CarlosG_2-1716599664098.png

 

I've been testing functions, different set of conditions, raw information, but still not getting the right configuration here, really appreciate if someone can give me an idea on how to configure it or if someone already faced something similar and already tackled this, many thanks!.

Regards,

Carlos Gonzalez

Categories:
I have the same question (0)
  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @CarlosG 

     

    I think there is a mistake in using the function, you should include the date when along with including the time 09:00:00

    Nived_Nambiar_0-1716652129345.png

     

    The correct format should be - greaterOrEquals(ticks(body('Convert_time_zone')),ticks(concat(formatDateTime(body('Convert_time_zone'),'yyyy-MM-dd'),'T09:00:00')))

     

    Hope this makes things clear.

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

  • CarlosG Profile Picture
    2 on at

    @Nived_Nambiar 

    Thanks for the answer, but unfortunately when I tried it, I got an error while running a test.

    CarlosG_0-1716991520682.png

    Error message:

    Unable to process template language expressions for action 'Condition_3' at line '0' and column '0': 'The template language function 'greaterOrEquals' expects all of its parameters to be either integer or decimal numbers. Found invalid parameter types: 'Boolean'.'.

     

    I'm also exploring another alternatives but still not finding any, thanks!

    Regards,

    Carlos Gonzalez

  • Nived_Nambiar Profile Picture
    18,136 Super User 2025 Season 2 on at

    Hi @CarlosG 

     

    did you passed any boolean parameter ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel
    Blog: Nived Nambiar's Blogs

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

     

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard