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 Blog
YouTube - Learn To Illuminate Videos
Hi @BHS_KI
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) & ";"
)
}
)
Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
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??
Hi @BHS_KI
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.
Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
Hi @BHS_KI
Interesting Bug. Please refer to the Blog for the workaround.
Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
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.
Hi @BHS_KI
Make sure your start time like "2022-11-15T00:00:00" and your end time "2022-11-16T00:00:00".
Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
Hi @BHS_KI
Let me know if any help is needed for this post.
Thanks, Stalin (Microsoft MVP)
Blog - Learn To Illuminate Blog
YouTube - Learn To Illuminate Videos
User | Count |
---|---|
247 | |
105 | |
82 | |
50 | |
43 |