Hi All - Trying to send a calendar event working with TimeZones.
Here is code that I got from online to calculate Start Date
Set(StartDateTime, DateAdd(dtStart.SelectedDate, StartTime_1.SelectedText.Minutes, TimeUnit.Minutes));
Set(StartDateTimeUTC, Text(DateAdd(StartDateTime, TimeZoneOffset(), TimeUnit.Minutes), "[$-en-US]yyyy-mm-ddThh:mm") & ":00.000Z");
This translates to 6:00 AM for a meeting I am trying to set for 10:00 AM. Client Tenant is in CST
If I do a DateAdd to get the time I want to set the meeting for I get the correct time
But When I pass that in my .V4CalendarPostItem code
Office365Outlook.V4CalendarPostItem(
LookUp(Office365Outlook.CalendarGetTables().value,DisplayName = "Calendar").Name,
"Training Class ",
DateAdd(varstarttime,4,TimeUnit.Hours),
DateAdd(varendtime,4,TimeUnit.Hours),
"UTC",
{
requiredAttendees: "ittrain@vvvvv.org,vvvvv.vvvvv@vvvv.org",
isReminderOn:true, reminderMinutesBeforeStart:15,
// location:ittrain@jccal.org,
importance:"normal",
isAllDay:false,
recurrence: "none",
//If recurrance you need to set an end date recurrenceEnd" 2020-06-10" as string
reminderMinutesbeforeStart: 15,
//isReminderOn: true,
ShowAs: "busy"
}
)
IT still shows up on the outlook calendar as 6:00
The Office365Outlook.V4CalendarPostItem is in my PowerApp but I also pass the variable in flow to send an email and it has the right start / end time. is it something in exchange that is different?

Report
All responses (
Answers (