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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

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

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,897)