01-20-2020 13:14 PM
Don't you get annoyed when people schedule meetings during your lunch hour?
Here is a flow to help you in notifying the organizer with a friendly e-mail reminding them about why your lunch hour is sacred for you.
This is a great idea, however, when I tested this out, any entries into my calendar triggered this flow.
How can I make sure the logic works? What I want is for people not to book an event from 12:30 - 1:00 pm each business day (M-F)?
Do you have any assistance for me please?
I have added a trigger condition in my flow to check if the start hour is 12.
@equals(int(formatDateTime(convertTimeZone(triggerBody()?['start'],'UTC','Eastern Standard Time'),'hh')),12)
You will have to change your time zone in this expression.
Also, my flow was getting triggered if I accepted / declined the event. So I added another condition in the trigger conditions.