office365api

Office365 API Error “Mailbox database change detected;”

你。 提交于 2019-12-06 13:36:03
问题 Occasionally when sending an email through the Office365 API, we get an error back: excerpt: {"httpCode":503,"headers":"HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 503 Service UnavailableX-MS-Diagnostics: Routing Validation; Mailbox database change detected; moved from database 31f16b42-8c32-43a3-a05f- f554bb4c579f to 78f2e7a1-e65f-4148-8be4-b98ac0635fdf\r\nX- BEServerRoutingError: Mailbox database change detected; moved from database 31f16b42-8c32-43a3-a05f-f554bb4c579f to 78f2e7a1-e65f-4148- 8be4

Fetch messages filtered by conversationId via Office365 API

Deadly 提交于 2019-12-06 12:38:53
问题 I'm having some trouble figuring out how to use the office365 api to fetch messages given a conversationId . Let's say my conversationId is AAQkADlkOGJmMTFmLTc2NjMtMKL3My04ZDhkLTVmZWNjMzA1ODY0NAAQAB11Xh2opSpBiXifMEJjhow= I'll make a request like https://outlook.office.com/api/v1.0/me/Messages?$filter=ConversationId%20eq%20AAQkADlkOGJmMTFmLTc2NjMtMKL3My04ZDhkLTVmZWNjMzA1ODY0NAAQAB11Xh2opSpBiXifMEJjhow= This results in a 400 response like this: { "error": { "code": "RequestBroker-ParseUri",

Office365 API - Pulling my userphoto

微笑、不失礼 提交于 2019-12-06 11:54:51
I have a simple web app that for the past month or so the following was working: outlook.office365.com/api/beta/Me/userphotos('120x120')/$value but now it returns: {"error":{"code":"RequestBrokerOld-ParseUri","message":"Resource not found for the segment 'userphotos'."}} I get the same error if I try any of the following: https://outlook.office365.com/api/beta/Me/userphoto https://outlook.office365.com/api/beta/Me/userphotos https://outlook.office365.com/api/beta/Me/userphoto/$value It is possible that my organisation has changed something to cause this? Or has there been a general change in

How to sign in any Azure Active Directory (AD) user to a Shared Native app which connector to Office 365 Sharepoint Online APIs

亡梦爱人 提交于 2019-12-06 11:37:46
问题 Is it possible to set up a single "Native app" which can be used by users on different Azure accounts/directories so they can get data from their Office 365 Sharepoint Online? We can get this working using a "Web app" because in the Azure portal where you set this up it has the "Multi-tenanted" option which can be set to Yes - the notes for this support this: Designates whether users in external organizations are allowed to grant your app access to data in their organization's directory. This

Microsoft Graph Webhook/Subscription, getting multiple post to my notificationUrl

拟墨画扇 提交于 2019-12-06 09:59:38
问题 Im trying to receive push notification on calendar events through microsoft graph the notificationURL points to webservice which is running on NodeJS subscription I have made has these options. { "changeType": "created,updated,deleted", "notificationUrl": "myurl", "resource": "users/userid/events?$filter=sensitivity%20eq%20%27Normal%27", "expirationDateTime":"2016-11-05T18:23:45.9356913Z", "clientState": "customclientstate" } however im getting multiple POST calls(2~4) coming from

What to do if app misses notification - SequenceNumber jumps over by one or more?

只愿长相守 提交于 2019-12-06 05:15:43
Where I am right now? I have subscribed to calendar notifications via office365's REST API. When any event in that calendar are created/updated/deleted office365 sends notification to my app's endpoint which I assigned when I created this subscription. Subscription code works like a charm and notifications are coming immediately. I really want to make my code error tolerant and here comes the problem: what happens if notifications are coming in non-incremental order? For example if someone first creates event and then removes it. Can those notifications come in opposite order? 1. remove event,

Office365 authentication without login redirection

落爺英雄遲暮 提交于 2019-12-06 00:05:59
I'm trying to load data from Office365 email without need for user interaction. I've created Azure App and I have Client ID and Client secret. I also have user information (email + password). I need to call Office365 API to download emails from mailbox. But I need application to download them in background without user interaction (redirecting to MS/Office365 login page) to get authenticated/logged into mailbox. Is there any way how to do this only through Office API, without need of redirection? Thanks for any info. Yes, you are able to create a daemon service app using the Client Credential

How to get client secret from azure active directory for native app for using one drive business API?

本小妞迷上赌 提交于 2019-12-05 16:40:42
问题 I am developing an outlook plugin.I want use one drive API's in it.I easily got the client Id and client secret for using API's for one drive personal accounts.But, when I registered my application for one drive business API's in azure active directory, it created only a client Id for me, but didn't create any client secret.I chose native app while registering, as my app is a native app.I can't authenticate the user without the client secret.Please let me know , how to get the client secret

Microsoft Graph API mail office 365: Is any option create inbox message NOT as Draft?

半世苍凉 提交于 2019-12-04 19:47:01
I'm using office 365 mail Microsoft Graph API , trying to create new message following the Doc: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/user_post_messages POST https://graph.microsoft.com/beta/me/messages Content-type: application/json { "subject":"Did you see last night's game?", "importance":"Low", "body":{ "contentType":"HTML", "content":"They were <b>awesome</b>!" }, "toRecipients":[ { "emailAddress":{ "address":"AdeleV@contoso.onmicrosoft.com" } } ] } { OUTPUT: "@odata.context":"https://graph.microsoft.com/beta/$metadata#users('ad787b4f-1fda-4523-8e48

Office365 API Error “Mailbox database change detected;”

帅比萌擦擦* 提交于 2019-12-04 18:24:36
Occasionally when sending an email through the Office365 API, we get an error back: excerpt: {"httpCode":503,"headers":"HTTP/1.1 100 Continue\r\n\r\nHTTP/1.1 503 Service UnavailableX-MS-Diagnostics: Routing Validation; Mailbox database change detected; moved from database 31f16b42-8c32-43a3-a05f- f554bb4c579f to 78f2e7a1-e65f-4148-8be4-b98ac0635fdf\r\nX- BEServerRoutingError: Mailbox database change detected; moved from database 31f16b42-8c32-43a3-a05f-f554bb4c579f to 78f2e7a1-e65f-4148- 8be4-b98ac0635fdf"} Does anyone know why this happens,its annoying when the client thinks your app is