cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Skilled Sharer
Skilled Sharer

Timezone not valid while sending event -V4CalendarPostItem

Hi,

 

I got error while sending invite using V4CalendarPostItem- 

 

Error is "Time zone" local is not valid. Please help

 

Set( _myScheduledMeeting,
Office365Outlook.V4CalendarPostItem( _myCalendarName,
"subject,starttime,endtime,"local",
{
requiredAttendees: Concat( MyPeople, UserPrincipalName & ";" ),
body: txtBody.Text,
importance: "Normal",
showAs: "Busy",
responseRequested: true
}
)

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User II
Dual Super User II

Re: Timezone not valid while sending event -V4CalendarPostItem

if you are using the same code that you posted, only with a timezone name now, then you've got a mismatched quotation mark. Notice subject has no closing quote.  If not, please paste a copy of your code and I'll take a look.

 

Set( _myScheduledMeeting,
Office365Outlook.V4CalendarPostItem( _myCalendarName,
"subject,starttime,endtime,"local",
{
requiredAttendees: Concat( MyPeople, UserPrincipalName & ";" ),
body: txtBody.Text,
importance: "Normal",
showAs: "Busy",
responseRequested: true
}
)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User II
Dual Super User II

Re: Timezone not valid while sending event -V4CalendarPostItem

Per the documentation the connector requires an actual time zone value.  So you need to put in the actual local time zone as its listed in windows.  (example: 'Pacific Standard Time'). 



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Highlighted
Skilled Sharer
Skilled Sharer

Re: Timezone not valid while sending event -V4CalendarPostItem

Now it is saying at least one property failed validation

 

 

 

 
Highlighted
Dual Super User II
Dual Super User II

Re: Timezone not valid while sending event -V4CalendarPostItem

if you are using the same code that you posted, only with a timezone name now, then you've got a mismatched quotation mark. Notice subject has no closing quote.  If not, please paste a copy of your code and I'll take a look.

 

Set( _myScheduledMeeting,
Office365Outlook.V4CalendarPostItem( _myCalendarName,
"subject,starttime,endtime,"local",
{
requiredAttendees: Concat( MyPeople, UserPrincipalName & ";" ),
body: txtBody.Text,
importance: "Normal",
showAs: "Busy",
responseRequested: true
}
)



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted
Skilled Sharer
Skilled Sharer

Re: Timezone not valid while sending event -V4CalendarPostItem

it is working now. The error is, my start date is not set properly. Thanks for your help @Pstork1 

 

Helpful resources

Announcements
secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Users online (5,564)