cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
fino
Level: Power Up

Advanced Condition - testing for time greater than a certain time of the day

Hi I want to create a flow that will send an email to event organiser  if the event is added on a tuesday between 12.00 and 4.00 pm.  conditioning on start time and end time seem straightforward but i am having trouble checking for dayofweek=tuesday.   i understand tuesday returns as value 2 is that right?

thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
v-zhos-msft
Level 10

Re: Advanced Condition - testing for time greater than a certain time of the day

Hi @fino ,

It seems you want to check whether a event is added on a specific time.

I have made a flow for your scenario, please check it for a reference.

The expression in the condition are:

greaterOrEquals(formatDateTime(triggerBody()?['Start'],'HH:mm'),'12:00')
lessOrEquals(formatDateTime(triggerBody()?['End'],'HH:mm'),'16:00')
dayOfWeek(triggerBody()?['Start'])

Capture3.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-zhos-msft
Level 10

Re: Advanced Condition - testing for time greater than a certain time of the day

Hi @fino ,

It seems you want to check whether a event is added on a specific time.

I have made a flow for your scenario, please check it for a reference.

The expression in the condition are:

greaterOrEquals(formatDateTime(triggerBody()?['Start'],'HH:mm'),'12:00')
lessOrEquals(formatDateTime(triggerBody()?['End'],'HH:mm'),'16:00')
dayOfWeek(triggerBody()?['Start'])

Capture3.PNG

Best Regards,

Community Support Team _ Zhongys

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 406 members 3,040 guests
Please welcome our newest community members: