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

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

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

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,041)