cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ivazquez
Level: Powered On

Need help creating a Condition for New Event create (V2)

I need to create a condition with a statement that will send a notification when the event is starts after 5pm or the event starts saturday or sunday.

 

@greater(triggerBody()?['Start'], '17:00:00')

2 REPLIES 2
Community Support Team
Community Support Team

Re: Need help creating a Condition for New Event create (V2)

Hi @Ivazquez,

 

Could you please share a screenshot of your flow's configuration?

Do you create an event within your Outlook calendar?

 

I have made a test on my side and please take a try with the following workaround:

  • Add a "When a new event is created (V2)" action, specify Calendar Id.
  • Add a Condition, click "Edit in advanced mode", type the following workaround:
@or(greater(formatDateTime(triggerBody()?['Start'], 'HH:mm'), formatDateTime('2018-04-13T17:00:00Z', 'HH:mm')),or(equals(dayOfWeek(triggerBody()?['Start']), 6),equals(dayOfWeek(triggerBody()?['Start']), 0)))
  • Within "If/yes" branch of Condition, add a "Send an email" action.

Image reference:6.JPG

The flow works successfully as below:7.JPG

 

More details about using expression in flow actions, please check the following article:

Use expression in flow actions

 

 

Best regards,

Kris

 

 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Ivazquez
Level: Powered On

Re: Need help creating a Condition for New Event create (V2)

thanks Kris, i will try it tomorrow and let you know the status

Helpful resources

Announcements
firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,840)