office365api

Fetch messages filtered by conversationId via Office365 API

谁都会走 提交于 2019-12-04 17:14:36
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", "message": "Syntax error at position 98 in 'ConversationId eq

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-04 15:21:20
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 control affects only the ability to grant access. It does not affect any access that has already been

Office365 Unified API, get calendar ID from Events ID

泄露秘密 提交于 2019-12-04 06:33:10
问题 Every Event belongs to a Calendar, so when I receive a webhook from Outlook API management about a calendar event, I expect to also receive the container ID of this Events, but no. I get very little information about this calendar event, but still there is an ID. The problem how to get the ID of the calendar itself that holds this event? I use unified API for querying this, and all I get so far is GET https://graph.microsoft.com/beta/me/Events/< ID > But guess what, nowhere inside this

Why do I get Gateway Timeout whenever my MS Graph API mail search finds no results?

荒凉一梦 提交于 2019-12-04 03:30:14
问题 As of this week I am suddenly getting gateway timeout from Graph when my mail search finds no results. I am using a query like this one: https://graph.microsoft.com/v1.0/users/shared@notreal.com/mailFolders/AllItems/messages?$search="participants:some.person@fake.com"&$select=from,subject,HasAttachments,Id,SentDateTime&$top=100 This is a Graph query which requests up to 100 emails from the Office 365 mailbox of shared@notreal.com where the sender or receiver includes some.person@fake.com .

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

☆樱花仙子☆ 提交于 2019-12-04 02:11: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?Thanks in advance. Native clients don't have any secrets associated to them - given that they are meant

How to send nested attachments?

心已入冬 提交于 2019-12-03 08:28:59
Stuck here writing JS code to send out an email via REST within a custom Outlook add-in. Scenario is following report \ \---- another message (item attachment) \ \------- attachment (file attachment) In words, I am sending a new report message which includes another message as an Item Attachment (that works fine). But now, the problem is that, when sending with another message that has attachments, then this fails. Opening the report which has the other message attached doesn't show the attachments. Query is POST https://outlook.office365.com/api/v2.0/me/sendmail Returns 202 Accepted Body is

File attachments showing as message entities in Microsoft Graph API

感情迁移 提交于 2019-12-03 08:22:56
Recently we've noticed that the Microsoft Graph API has been returning file attachments as message entities returned from the /me/messages endpoint. The scenario to reproduce is as follows: Send yourself an email (or have someone else send you an email) with one or more file attachments Run the following query in Graph Explorer: https://graph.microsoft.com/v1.0/me/messages Notice that there will be one object which represents the email itself (this is correct behaviour) and one or more objects which are representations of the file attachments. It's also worth noting that these attachment

Can't get all busy times of meeting rooms using the Office365 Calendar API

时间秒杀一切 提交于 2019-12-02 19:41:11
问题 Trying to fetch calendar events in order to allow a user to pick a time for a meeting where the attendees and the meeting room are available. We're using Outlook Calendar REST API v2 - findMeetingTimes: https://msdn.microsoft.com/en-us/office/office365/api/calendar-rest-operations#FindMeetingTimes The request returns almost all of the events. For some reason events that were created by the user that executes the request are not included in the response. It means that the meeting room or

Getting 401-Unauthorized while getting photo using outlook REST API - java cliet

萝らか妹 提交于 2019-12-02 18:04:49
问题 I am trying to retrieve user photo using outlook REST API(https://msdn.microsoft.com/en-us/office/office365/api/photo-rest-operations#UserphotooperationsGetphoto) I got the access token following (https://msdn.microsoft.com/en-us/library/azure/dn645543.aspx) but getting this error : any help? HTTP/1.1 401 Unauthorized [Content-Length: 0, Server: Microsoft-IIS/8.0, request-id: 6925fcab-9021-4059-af4b-4cbf130faea7, X-CalculatedBETarget: CY1PR0401MB1388.namprd04.prod.outlook.com, X

Microsoft's Graph permission resource type has no invitations

喜你入骨 提交于 2019-12-02 12:53:37
问题 Been trying to collect information regarding specific DriveItem's permissions using both Microsoft Graph's unified API, and OneDrive API. Documentation states the following properties are available in the Permission resource type : { "grantedTo": { "application": { "displayName": "displayName-value", "id": "id-value" }, "device": { "displayName": "displayName-value", "id": "id-value" }, "user": { "displayName": "displayName-value", "id": "id-value" } }, "id": "id-value", "invitation": {