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

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

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

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

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

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

Top Solution Authors
Top Kudoed Authors
Users online (9,571)