cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
simonmccarthy27
New Member

Condition based on the event length

Hi All 

 

I have a flow that adds a buffer time at the end of meetings in certain meeting rooms. At the moment it works well but i would like to add a different buffer time based on the meeting length, so ideally a condition if the meeting is less than 30 mins add a 5 min event called buffer and if its longer than 30 mins then a 10 min event called buffer?

 

does anyone know how this can be achieved ( i'm also a novice so go easy! 🙂 )

 

heres the flow so far - i know id need another condition before the create event etc, just not sure how to create the condition as the meeting length.

simonmccarthy27_1-1654765578290.png

 

1 REPLY 1
Hardesh15
Super User
Super User

@simonmccarthy27  You can take time difference from event start and end time and if it is less than 30 min then add 5 min otherwise add 10 min.

 

Your flow logic is correct only you need to add time difference logic via condition action.  Current there is no direct way to calculate date time difference so you need to use tick().

Please use this solution- https://powerusers.microsoft.com/t5/Building-Power-Apps/how-to-get-difference-between-two-dates-in-f...

Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

@Hardesh /Gopenly.in

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (1,756)