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

Generating event to calendar in free time

Hello everyone,

 

I have a booking system which gives a patient dates to visit a clinic. How it works, we pick "start day" a to that date I am adding days using this "addDays(triggerBody()?['...here is start date...'],7)", and it creates a "visit" in calendar.
After that there is another action same like that before but with different number, like that
"
addDays(triggerBody()?['Datum_x0020_randomizace_x003a_'],)14" and more... at the end it create's an event in shared calendar.

 

What I need is to set those "visit's" to generate only from 7AM to 10AM, one for 30 minutes. When it's full it have to start again from 7AM to 10AM.

 

Thank you for your replies.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Generating event to calendar in free time

Hi @Dowre ,

 

You could configure the third argument to the addDays() function to specify the start time.

Expression:

addDays(triggerBody()['date'],7,'yyyy-MM-ddT07:00:00')

Image reference:

12.PNG13.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
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
Community Support Team
Community Support Team

Re: Generating event to calendar in free time

Hi @Dowre ,

 

You could configure the third argument to the addDays() function to specify the start time.

Expression:

addDays(triggerBody()['date'],7,'yyyy-MM-ddT07:00:00')

Image reference:

12.PNG13.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
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
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
Users Online
Currently online: 399 members 6,370 guests
Please welcome our newest community members: