web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / creating calendar even...
Power Automate
Unanswered

creating calendar event from forms - goes one day shorter then date input

(0) ShareShare
ReportReport
Posted on by 5

Hi there, 

I am trying to automate the reservation process for a piece of equipment. The goal is to have the user complete a form, then take the data from the form to create an outlook calendar event.

 

the form has a separate question for the check-out date and the check-in date. I use the dynamic content to populate the data for event start/end time. I would like for these to be all day events as well.

 

I have two issues

  1. When the check-out and check-in are on the same date the flow fails with the message reading - "Your request can't be completed. Your request can't be completed. The duration of an event marked as All day must be at least 24 hours."
  2. When the check-out and check-in date goes over multiple days the event created is always one day short.
    1. For example: Check-out on 06/19/23 and check-in on 06/22/23. The event populates with the dates of 6/19-6/21. I want the event to reflect that the equipment is still reserved on this 22nd date.

It seems the issue for both of these, is that flow does not view that check-in date as a full day. Its almost using it as a stopping point for the event, once the clock hits midnight on that date the event is over

 

Any suggestions

Categories:
I have the same question (0)
  • Verified answer
    v-mingkz-msft Profile Picture
    Microsoft Employee on at

    Hi @kylo1,

    Do you want to create an event according to the response submitted in the form?

     

    Please offer me more information.

    1. Are the check-in and check-out in the form Date type?

     

    I did some test according to your requirements.

     

    You can Set the End time in Create event as the day after check-out.

     

    vmingkzmsft_0-1687240428480.png

    Following is my form.

    vmingkzmsft_1-1687241052084.png

     

    Best Regards,

    Kyrie Zhang

  • kylo1 Profile Picture
    5 on at

    This was the solution! addDays was exactly what i needed.

     

    Thanks!

  • TZ-20011511-0 Profile Picture
    2 on at
    Its hard to see in the screenshot but you have to add ,1 at the end of the script.  Once I figured out I was missing the comma, it worked great.  Thank you

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard