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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Outlook.V4Cal...
Power Apps
Unanswered

Office365Outlook.V4CalendarPostItem and Exchange calendars - TimeZone Offset

(0) ShareShare
ReportReport
Posted on by 812

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 

 

 

ctedesco3307_0-1712583027774.png

If I do a DateAdd to  get the time I want to set the meeting for I get the correct time

 

ctedesco3307_1-1712583298645.png

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 

 

ctedesco3307_2-1712583571600.png

 

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? 

 

ctedesco3307_3-1712583690765.png

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 914

#2
11manish Profile Picture

11manish 627

#3
Valantis Profile Picture

Valantis 598

Last 30 days Overall leaderboard