Questions tagged [microsoft-graph-files]

Microsoft Graph Files refers to the OneDrive and SharePoint Files APIs in Microsoft Graph. This tag should always be used in conjunction with the [microsoft-graph] tag.

204 questions
4
votes
1 answer

Microsoft teams: filesFolder is returning 404 for a newly created team/channel

We are using the below graph endpoint to get the metadata for the location where the files of a channel are stored. GET /teams/{id}/channels/{id}/filesFolder Sometimes for a newly created MS team/channel it is returning 404 not found. GET HTTP/1.1…
4
votes
0 answers

Is it possible to select all files (files only) in a location using the Graph API?

I'm attempting to use the Graph API to select all folders and files for a SharePoint location. I can use the following call to get a list of all driveItems (folders and files) in a location: /drives/{drive-id}/root/children I can extend this call…
4
votes
3 answers

Get SharePoint folders and docs using Microsoft Graph API

I'm trying to get the folders and documents from a SharePoint document library using Microsoft Graph API. If I do a GET request for https://graph.microsoft.com/v1.0/sites/mysite.sharepoint.com:/sites/MyDocumentSite:/drives/, I get this back: { …
TheIronCheek
  • 1,077
  • 2
  • 20
  • 50
3
votes
0 answers

MsGraph OneDrive and Preservation Hold library

For some reason request GET /my/drives for OneDrive Business accounts returns "Preservation Hold library" in collection of user's drives. "Preservation Hold library" drive has language specific description: "This library contains items that have…
23W
  • 1,413
  • 18
  • 37
3
votes
0 answers

Power Point is not being converted to PDF using Microsoft Graph API calls

I am using Microsoft Graph calls to convert my presentation into pdf. Usually it converts successfully for general presentations but it fails if size of my ppt is little big(around 1 MB) or contains some high quality graphic images. I'm getting this…
3
votes
3 answers

Get all Files in a folder using Microsoft Graph API

Requirement - Need to access a particular File within a Document Library File Path - host-name/sites/sitename/Shared Documents/Folder1/File1 I tried with these https://graph.microsoft.com/v1.0/sites/{host-name}/sites/{site-id}:/drives Got all the…
3
votes
1 answer

Exact text searches with the Microsoft Graph API

Can we do exact text searches using the the Microsoft Graph API? I know the endpoint for search is: GET /me/drive/root/search(q='{search-query}') The documentation is unclear about what to pass into the search query (q) parameter. The query text…
3
votes
3 answers

How to enable CORS in Sharepoint Online

I am trying to implement share point file browser in my react application. Using microsoft/file-browser for this ans code as follows. But getting the xxx... from origin 'http://localhost:3000' has been blocked by CORS policy Any ideas how can I…
huMpty duMpty
  • 14,346
  • 14
  • 60
  • 99
3
votes
0 answers

How to fix "FileOpenBaseDocumentCheckOperationFailed" error 500 when i try to create session (Drive Excel Workbook))

I work on a proof of concept using MS Graph. When i try to create a session for my Excel workbook with Microsoft Graph REST API (v1.0), I got an error 500 FileOpenBaseDocumentCheckOperationFailed { "error": { "code":…
2
votes
0 answers

Delta filter stops working for the email messages

We use 'delta' ms graph api to track the changes in the message. Accordingly microsoft docs https://learn.microsoft.com/en-us/graph/delta-query-messages we can use delta parameter in such from '$filter=receivedDateTime+ge+{value}' After the some…
lazyden
  • 456
  • 5
  • 10
2
votes
1 answer

Microsoft Graph - "System.ArgumentException: '"UTF-8"' is not a supported encoding name" only on my PC

I'm having an issue with what I've deduced is a content type with double quotes inside the single quotes when sending a request to Microsoft Graph. The "cool" part is that this only happens on my PC, and the exact same code with the exact same…
2
votes
1 answer

Is it possible to give read permissions to users in sharepoint using Microsoft Graph

I'm using Microsoft Graph API to upload large files to sharepoint using createUploadSession endpoint. Is there a way to give read permissions in upload process to a specific user or I have to use other endpoint for this?
Dragg
  • 83
  • 2
  • 11
2
votes
0 answers

While using Mircosoft graphClient with delta query for onedrive throwing Item not found exception

private GraphServiceClient GetGraphClient() { var graphClient = new GraphServiceClient(new DelegateAuthenticationProvider((requestMessage) => { // get an access token for Graph var accessToken =…
2
votes
1 answer

Retrieve Document through msgraph using Document ID

I have enabled the Document ID feature in my Office 365 Sharepoint collections. I would like to store the Document ID on our php server and then be able to allow the server to download the document using the document ID. I have successfully set up…
2
votes
1 answer

Enumerate DriveItem resources of a specific Drive given SharePoint URL and using Graph API

I have a SharePoint URL of the form https://organizationname.sharepoint.com/sites/.... I want to use the Graph API to get a list of all resources in this drive. Reading the API documentation it appears that I require the drive-id of this drive in…
Matthew Thomas
  • 594
  • 7
  • 13
1
2 3
13 14