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 III
Dual Super User III

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 III
Dual Super User III

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

Now it is saying at least one property failed validation

 

 

 

 
Highlighted
Dual Super User III
Dual Super User III

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

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

 

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,273)