Getting UnknownError on calling me/findMeetingTimes api

Onbo dev 0 Reputation points
2023-07-04T08:07:27.7166667+00:00

me/findMeetingTimes

After removing the timezone header, the api is working fine but I want times in a specific timezone.

This is how I am sending the header:

headers: {
	'Authorization': `Bearer ${microsoftAccessToken}`,
	'Content-Type': 'application/json',
	'Prefer' : 'outlook.timezone="Asia/Kolkata"'
}
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. TH-4749-MSFT 3,315 Reputation points
    2023-07-04T14:37:22.08+00:00

    Hello Onbo dev,

    Thanks for reaching out. The value used int he Prefer header is incorrect. Please run the https://graph.microsoft.com/v1.0/me/outlook/supportedTimeZones query to get the Outlook supported values for time zones and use them in the Prefer header. In your case this should be 'outlook.timezone="India Standard Time"'.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.

    0 comments No comments

  2. TH-4749-MSFT 3,315 Reputation points
    2023-07-05T13:47:26.97+00:00

    Hello Onbo dev,

    Good day. Hope all is well.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    Thanks.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.