outlook-restapi

Getting error code `ErrorIrresolvableConflict` responses when trying to create events on a calendar using Outlook REST API

荒凉一梦 提交于 2020-01-19 21:36:30
问题 In the last few days (starting on Oct 28, 2019), without any code change on our part, we've started seeing a significant amount of requests from our server to create events on a calendar (using this endpoint: https://docs.microsoft.com/en-us/previous-versions/office/office-365-api/api/version-2.0/calendar-rest-operations#CreateAnEvent) returning an error. Error is: ErrorIrresolvableConflict , with the error message: The send or update operation could not be performed because the change key

Outlook notification subscription using Azure Webhook Domain Not Found

非 Y 不嫁゛ 提交于 2020-01-15 10:24:39
问题 I am working on Creating a push notification for inbox messages to be sent to my azure webhook. I have been following the documentation as a reference. Till now I have been able to create and register my app using the Azure app registration. I got the client_id and client_secret accordingly. Shared below are the postman requests I made to first get the access code and then access_token and refresh_token from the Oauth authorization endpoints - Getting the access code - Endpoint - https:/

Outlook notification subscription using Azure Webhook Domain Not Found

假装没事ソ 提交于 2020-01-15 10:23:05
问题 I am working on Creating a push notification for inbox messages to be sent to my azure webhook. I have been following the documentation as a reference. Till now I have been able to create and register my app using the Azure app registration. I got the client_id and client_secret accordingly. Shared below are the postman requests I made to first get the access code and then access_token and refresh_token from the Oauth authorization endpoints - Getting the access code - Endpoint - https:/

How to fetch a specific inline image using OWA REST API?

半腔热情 提交于 2020-01-14 05:34:06
问题 I'm developing OWA add-in using OWA REST API When fetching the message item, I can see in the body if there's an inline image added which is looks like <p style="margin-top:0; margin-bottom:0"> <img class="EmojiInsert" src="cid:773570bf-3178-41a4-97ac-4e3eddef859f" style=""> <br> </p> in the src I can see the contentId of the attachment but the resource reference did not says if this property is searchable or filterable, and I cant $select it in the odata query params, therefore I cant get

How to access shared calendars from Office REST API?

北战南征 提交于 2020-01-10 04:21:26
问题 This question has been asked several times and as per answers such as this it seems the API didn't support this then until recently as here which mentions that there are new scopes which allow accessing the shared calendars. But it still does not work. I have tested this on two platforms: Azure and Microsoft Graph Azure Ad App My application in Azure AD has all the required permissions: I make a call to Office API v.1.0 as: Authorise URL: https://login.microsoftonline.com/common/oauth2

Get events of a specific time range

柔情痞子 提交于 2020-01-07 03:08:08
问题 I'm working with the Office365 Outlook Calendar API. I need to get events of a specific time range. I tried to compare the DateTimeTimeZone values inside of the foreach command, but it seems like it only supports a == operator: if ( calendarEvent.Start >= new DateTimeTimeZone() { TimeZone = TimeZoneInfo.Local.Id, DateTime = DateTime.Now.ToString("s") }) This code snippet fails with the error: Cannot apply operator '>=' to operands of type 'Microsoft.Office365.OutlookServices.DateTimeTimeZone'

Office 365 API - Request returned HTTP error 400

坚强是说给别人听的谎言 提交于 2020-01-06 19:58:50
问题 I'm trying to follow a tutorial where I pull mail and calendar events from the Office 365 API. I was able to pull mail but when I try to pull calendar events I get back error 400 which, from some Googling, is apparently that one of my headers being too long. I put a var_dump(getallheaders()); and can see the following: array (size=10) 'Host' => string 'localhost:9999' (length=14) 'Connection' => string 'keep-alive' (length=10) 'Pragma' => string 'no-cache' (length=8) 'Cache-Control' => string

Office 365 API - Request returned HTTP error 400

自闭症网瘾萝莉.ら 提交于 2020-01-06 19:58:43
问题 I'm trying to follow a tutorial where I pull mail and calendar events from the Office 365 API. I was able to pull mail but when I try to pull calendar events I get back error 400 which, from some Googling, is apparently that one of my headers being too long. I put a var_dump(getallheaders()); and can see the following: array (size=10) 'Host' => string 'localhost:9999' (length=14) 'Connection' => string 'keep-alive' (length=10) 'Pragma' => string 'no-cache' (length=8) 'Cache-Control' => string

Office365 - Rest API - Message ItemAttachment loosing headers & attachments when forwarded

拜拜、爱过 提交于 2020-01-06 08:42:06
问题 I'm trying to send the email as an attachment to a user by creating draft message then attaching the #Microsoft.OutlookServices.ItemAttachment using /attachments The Item parameter sent in /attachments API call is the object received from API call made to get-a-message. But when the email is received the ItemAttachment is missing the original email headers and the original email attachment. The attachment is having only the following headers: From: --Removed-- To: --Removed-- Subject: -

Can't create a all-day repeated via Graph API

為{幸葍}努か 提交于 2020-01-06 07:17:12
问题 According to the document, I try to use Graph API to create a all-day repeated event on my calendar, but the server always responses 400: TimeZoneNotSupportedException. Is there any wrong in my request? Here is my request and server response. POST /me/calendars/${one_of_my_calendar_id}/events Request body: { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('6cb879ad-1d01-4aed-bcc5-763e3f51c535')/events/$entity", "@odata.etag": "W/\"BfXylo4WykyAenTZICXL5AABk4B1gA==\"", "id":