Notifications
Announcements
Hi there I am struggling with the syntax of the CreateCalendarEventV2. I made a simple test, but does not work. Seemed to be different to the personal calendar.
Someone who can help me, please?
Thanks,
Klaus
Hi @BHS_KI
Please try this.
Office365Groups.CreateCalendarEventV2( "04970c65-7023-46a2-ba39-eed515a9256a", "New Client Project Meeting", { dateTime: Now(), timeZone: UTC }, { dateTime: DateAdd( Today(), 2 ), timeZone: UTC }, { body: { content: "New Project", contentType: "Text" }, location: {displayName: "Client Meeting"}, importance: "Normal", isAllDay: false, isReminderOn: false, showAs: "Busy", responseRequested: false } )
Thanks, Stalin (Microsoft MVP)Blog - Learn To Illuminate BlogYouTube - Learn To Illuminate Videos
We can also use the Office365 Outlook connector to create appointments.
Office365Outlook.V4CalendarPostItem( "Calendar", "Stalin Test", DateAdd( DateTimeValue(StartDatePicker.SelectedDate & " 8:00:00 AM"), TimeZoneOffset(), Minutes ), DateAdd( DateTimeValue(EndDatePicker.SelectedDate & " 8:30:00 AM"), TimeZoneOffset(), Minutes ), "(UTC) Coordinated Universal Time", { body: "Meeting Notes", requiredAttendees: Concat( RequiredAttendessCombo.SelectedItems.Mail, Text(Mail) & ";" ) } )
Thank you for your reply. But the allday option is required. Not I fixed the bad documentation with the syntax according to your example and some others on the internet.
In the runtime mode I get a problem with midnight setting. But how to set it in my timezone??
I tested and got the same error for a full-day event. Looks like this is a product bug. Same functionality I tested using Power Automate, and it works fine.
Outlook
We can create Power Automate, and a call from PowerApps is the solution. Let me know if any questions about developing that functionality.
Interesting Bug. Please refer to the Blog for the workaround.
Hello Stalin,
you cannot book an event in a shared calendar.
Hi Stalin,
when I enter the date manually it works like you mentioned. But when I pass the date in the same format and with the same value, the flow convert the time without control and produces an error.
Make sure your start time like "2022-11-15T00:00:00" and your end time "2022-11-16T00:00:00".
Let me know if any help is needed for this post.
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268