office365-restapi

Best way to get emails in an organization using the Outlook 365 API

流过昼夜 提交于 2021-01-27 20:24:30
问题 I'm building an application for collecting statistical information from emails inside organizations. Let's assume that those organizations use Outlook 365. I want to be able to do the following in the easiest way: Get permissions to read all the mails in an organization Get the emails + attachments and run my statistics It seems that there is no easy way to do it with Outlook 365. I found this: any-office-365-rest-api-to-get-messages-from-all-mailboxes-in-an-organization , but I don't

InefficientFilter error on Microsoft Graph requests which were previously working

穿精又带淫゛_ 提交于 2020-12-29 14:14:56
问题 Making the following request to the MS Graph to retrieve flagged messages ordered by due date: https://graph.microsoft.com/beta/me/messages?$filter=flag/flagStatus%20eq%20%27flagged%27&$orderby=flag/dueDateTime/dateTime%20desc&$top=100 would previously succeed and give back the expected results. Recently some users have been getting the following response: { "error": { "code": "InefficientFilter", "message": "The restriction or sort order is too complex for this operation.", "innerError": {

InefficientFilter error on Microsoft Graph requests which were previously working

≡放荡痞女 提交于 2020-12-29 14:13:55
问题 Making the following request to the MS Graph to retrieve flagged messages ordered by due date: https://graph.microsoft.com/beta/me/messages?$filter=flag/flagStatus%20eq%20%27flagged%27&$orderby=flag/dueDateTime/dateTime%20desc&$top=100 would previously succeed and give back the expected results. Recently some users have been getting the following response: { "error": { "code": "InefficientFilter", "message": "The restriction or sort order is too complex for this operation.", "innerError": {

How to get the message size of Exchange Online using Microsoft Graph Api?

守給你的承諾、 提交于 2020-07-23 05:34:18
问题 I am using graph.microsoft.com to fetch the exchange online folders and messages. But I am not getting the size of the message and folders in the response. Is there any way to get the message size using the graph Api. Although the size of the attachments is returned in the response. Another problem I am facing is I am not able to fetch all the folders in a mailbox. I was able to fetch all the folders using Exchange Web Service. I have checked the permission level of the folders which were not

How to get the message size of Exchange Online using Microsoft Graph Api?

元气小坏坏 提交于 2020-07-23 05:33:17
问题 I am using graph.microsoft.com to fetch the exchange online folders and messages. But I am not getting the size of the message and folders in the response. Is there any way to get the message size using the graph Api. Although the size of the attachments is returned in the response. Another problem I am facing is I am not able to fetch all the folders in a mailbox. I was able to fetch all the folders using Exchange Web Service. I have checked the permission level of the folders which were not

How to get the message size of Exchange Online using Microsoft Graph Api?

这一生的挚爱 提交于 2020-07-23 05:32:29
问题 I am using graph.microsoft.com to fetch the exchange online folders and messages. But I am not getting the size of the message and folders in the response. Is there any way to get the message size using the graph Api. Although the size of the attachments is returned in the response. Another problem I am facing is I am not able to fetch all the folders in a mailbox. I was able to fetch all the folders using Exchange Web Service. I have checked the permission level of the folders which were not

Write requests are only supported on contained entities, Microsoft Graph API

自作多情 提交于 2020-06-28 02:38:32
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a

Write requests are only supported on contained entities, Microsoft Graph API

こ雲淡風輕ζ 提交于 2020-06-28 02:37:41
问题 POST https://graph.microsoft.com/v1.0/Groups/bb754bb6-xxxx-xxxx-8e66-4c57c626ee29/members Accept: application/json Authorization: Bearer <access key> Content: { "directoryObject": { "id": "5cb55683-xxxx-xxxx-xxxx-5e163c939005" } } Response: { error: { code: "BadRequest" message: "Write requests are only supported on contained entities" innerError: { request-id: "20167459-5495-4034-9e27-503c64340c1f" date: "2015-11-27T14:25:20" }- }- } I am able to get members of a group but not able add a

Get SharePoint List with Python

落花浮王杯 提交于 2020-06-09 13:28:10
问题 I am trying to find any way possible to get a SharePoint list in Python. I was able to connect to SharePoint and get the XML data using Rest API via this video: https://www.youtube.com/watch?v=dvFbVPDQYyk... but not sure how to get the list data into python. The ultimate goal will be to get the SharePoint data and import into SSMS daily. Here is what I have so far.. import requests from requests_ntlm import HttpNtlmAuth url='URL would go here' username='username would go here' password=

Unable to retrieve 'ContentId' property of Attachment in Office365 REST Api

允我心安 提交于 2020-01-15 05:04:19
问题 I'm trying to retrieve attachments in the Office365 rest api. Since I want to avoid downloading the entire attachments, I'm using a select clause to avoid downloading the content, which is in the ContentBytes property: $select="ContentId,ContentType,Id,IsInline,Name,Size" So basically, I want to retrieve everything except the content. However, this gives the following error message (json): { "error": { "code": "RequestBroker-ParseUri", "message": "Could not find a property named 'ContentId'