Microsoft Q&A

Microsoft Graph Files API

385 questions

A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.

385 questions with Microsoft Graph Files API tags

Sort by: Updated
1 answer

Graph API Returns 504 Error Even for Single Cell Value Updates

I'm attempting to update a cell value in an Excel sheet hosted on OneDrive using the Microsoft Graph API. However, every attempt results in a 504 Gateway Timeout error. Below is the code snippet for the PATCH request: { "method":…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
844 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-09-04T17:28:04.93+00:00
Maxwell Moreira 0 Reputation points
commented 2023-09-06T02:43:31.91+00:00
CarlZhao-MSFT 27,376 Reputation points
1 answer

Microsoft Purview Data Classification API or PS Command (Activity Explore)

Hello Everyone, Is there any API or PowerShell command to retrieve the data from Microsoft Purview Data Classification Activity Explore basically I wanted to fetch the sensitivity labels for all files. We have other APIs but there we need to provide some…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
1,950 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,214 questions
asked 2023-08-22T07:31:38.07+00:00
Swahela Mulla 45 Reputation points
edited the question 2023-09-05T09:15:06.0466667+00:00
CarlZhao-MSFT 27,376 Reputation points
1 answer

Can I monitor how a third party Application calls our MS Graph API?

We are using an addin to Word, which requires access to Excel files on our Sharepoint. We log onto the addin using our MS users via MSAL, and give their App delegated access to Files.Read.All so that it can fetch the Excel files using our MS Graph…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-31T10:12:44.0066667+00:00
aorsten 0 Reputation points
answered 2023-08-31T17:07:39.1233333+00:00
msft-gu 970 Reputation points
1 answer One of the answers was accepted by the question author.

Is there an graph API that can obtain whether a file is in an editing state (locked)?

Hi guys, The user is editing a file in Onedrive, and if we update the content of the file through the Graph SDK at this time, we will encounter the following error "The resource you are attempting to access is locked". To avoid encountering…

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-28T10:15:06.0633333+00:00
Tom Zhang 20 Reputation points
edited the question 2023-08-29T01:55:33.4+00:00
CarlZhao-MSFT 27,376 Reputation points
1 answer One of the answers was accepted by the question author.

Using Batching With the Graph API Returns the Body Response As Base64 When Uploading a File

I am attempting to use the Graph Batch API as defined here: https://learn.microsoft.com/en-us/graph/json-batching Most request types return the response body in JSON format as show in the first request below. However any time I attempt to Upload a…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,879 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-25T12:37:33.8633333+00:00
Shawn Bittinger 20 Reputation points
accepted 2023-08-28T12:38:40.6766667+00:00
Shawn Bittinger 20 Reputation points
0 answers

OneDrive Integration: Sending Base64 Files to a Folder

Hello everyone, I hope you are doing well. I'm having trouble finding a specific API that inserts a file into a folder in Microsoft OneDrive. I need an API that accepts a base64 as input. I would like this API and an example of use or a CURL. I receive a…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
467 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-22T15:47:43.3733333+00:00
edited the question 2023-08-23T06:16:46.59+00:00
AllenXu-MSFT 10,086 Reputation points Microsoft Vendor
0 answers

The API is very slow in detecting some changed to drives and file items.

I find that the Files API is very slow in detecting changes to a drive / drive items, like up to 10 minutes. I have a situation where I use the File API call to copy a file (workbook) on a SharePoint drive,…

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-22T09:37:55.2+00:00
Thomas Schneider 0 Reputation points
edited the question 2023-08-22T09:38:44.0633333+00:00
Thomas Schneider 0 Reputation points
1 answer

Efficient Retrieval of Sensitivity Labels and Associated Files in SharePoint Online (M365)

Hello Everyone,   I'm facing a challenge with efficiently retrieving sensitivity labels and their associated files from SharePoint Online, and I'm seeking guidance on how to optimize my current approach. Currently, I'm using a PowerShell script to fetch…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
1,950 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,879 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
1,214 questions
asked 2023-08-21T13:32:11.72+00:00
Swahela Mulla 45 Reputation points
edited an answer 2023-08-22T05:08:04.4+00:00
ChengFeng - MSFT 3,070 Reputation points Microsoft Vendor
1 answer

Update Sharepoint Drive metadata

HELLO I would like to know if it's possible to update a custom metadata using the Graph API. In my tests, I was able to update the standard created metadata (like the name) but not the ones I have created myself. Best regards, Belhassine

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,879 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
358 questions
asked 2023-08-16T08:37:52.6766667+00:00
Omar BELHASSINE 0 Reputation points
edited an answer 2023-08-17T05:41:27.2633333+00:00
ChengFeng - MSFT 3,070 Reputation points Microsoft Vendor
2 answers

Microsoft Graph Files API - not downloading the latest version of the file

We have a requirement in our application to download the word document. And we are trying to do so using following api- api/drives/{drive-id}/items/{item-id}/content The problem is that if the file is recently updated, the graph api does not gives the…

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-01T06:28:39.63+00:00
Chahat Taneja 0 Reputation points
answered 2023-08-11T14:35:37.9566667+00:00
TH-4749-MSFT 3,040 Reputation points
2 answers One of the answers was accepted by the question author.

Graph API - Sharepoint - Getting drive item missing file fields: category and functional area.

I am having some trouble getting specific file fields when pulling Sharepoint data, using the Graph API. I'm able to successfully pull info using this Graph API endpoint:…

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,204 questions
asked 2022-02-17T03:54:03.62+00:00
LC 31 Reputation points
commented 2023-08-10T09:38:19.6766667+00:00
jobs 20 Reputation points
1 answer One of the answers was accepted by the question author.

Remove all users from onedrive via graph powershell

Hi everyone, When offboarding a user we don't delete their OneDrive site. I normally use SharePoint module to remove any permissions inside that OneDrive site. But that means I add an additional user as site admin. I want to change this to the Graph…

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,879 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
OneDrive Management
OneDrive Management
OneDrive: A Microsoft file hosting and synchronization service.Management: The act or process of organizing, handling, directing or controlling something.
961 questions
asked 2023-07-27T12:27:03.8933333+00:00
Rahamim Levi 156 Reputation points
edited the question 2023-08-07T05:29:35.0866667+00:00
Emi Zhang-MSFT 16,226 Reputation points Microsoft Vendor
1 answer

Graph API Limits

For Microsoft Graph API v1.0 and beta, is there a limit on file size or number of pages or any other limit on converting office documents to PDF? E.g. - is there a page limit for Excel to PDF conversion?

Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-08-02T20:26:33.74+00:00
hs-7537 0 Reputation points
commented 2023-08-03T20:31:41.7133333+00:00
hs-7537 0 Reputation points
1 answer One of the answers was accepted by the question author.

Invalid Request Using Graph Invite Endpoint - "RequireSignIn and SendInvitation cannot both be false"

Receiving 400 Bad Request error when attempting to use the Invite endpoint for a folder in a SharePoint document library. Request header payload has "RequireSignIn" set to true and SendInvitation set to false. HTTP/1.1 400 Bad…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
Microsoft Graph Site Lists API
Microsoft Graph Site Lists API
A Microsoft API that "supports access to SharePoint sites, lists, and drives; read-only support for site resources; read-write support for lists, listItems, and driveItems; and address resources by SharePoint ID, URL, or relative path.
358 questions
asked 2023-07-24T17:12:42.64+00:00
Thomas Dorsey 20 Reputation points
accepted 2023-07-31T14:29:25.1633333+00:00
Thomas Dorsey 20 Reputation points
2 answers

Why does Microsoft Graph return 404 Not Found on my valid query?

Hello, I'm developing an application for my school that automatically displays a PowerPoint sent via email to all faculty every morning. Part of this requires fetching the list of OneDrive files that are "Shared With Me." Why does Microsoft…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-03-19T06:51:20.1333333+00:00
Larry Rowe 5 Reputation points
commented 2023-07-31T07:38:39.4433333+00:00
robert.betschinger 0 Reputation points
3 answers One of the answers was accepted by the question author.

Email search issue with IdType="ImmutableId"

Hi guys, We found a problem related to email search. On this week, suddenly found that this functionality is not working now. This functionality worked quite fine on our application without any problem. But after remove this Prefer :…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-05-17T09:16:25.2733333+00:00
Kanishka Hewapathirana 25 Reputation points
commented 2023-07-28T08:58:27.3866667+00:00
Revostat Admin 0 Reputation points
1 answer

How to set a Term into the TaxKeyword field of a file

I've been working with the TermStore in Microsoft Graph, using the official documentation I've managed to get a CRUD system of Terms. The whole point of the TermStore is using these terms with files, so I thought it would be also easy to add those terms…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-07-26T08:52:58.51+00:00
jobs 20 Reputation points
commented 2023-07-26T08:58:47.8233333+00:00
jobs 20 Reputation points
1 answer

How to Update SharePoint File Title When Only Item ID is Available after Upload?

I am working on a task to upload a file to SharePoint using the provided code. The file upload is successful, but I also need to update the title of the uploaded file. The SharePoint API requires the List ID to update the title, but in the response of…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
7,879 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
676 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-07-01T09:32:35.9166667+00:00
Manikant Jha 0 Reputation points
commented 2023-07-25T06:28:37.8133333+00:00
RaytheonXie_MSFT 23,251 Reputation points Microsoft Vendor
2 answers

How to use Graph API to get the OneNotes of a private teams channel?

Using the https://graph.microsoft.com/v1.0/groups/{id}/onenote/notebooks graph api endpoint, I can get all of the oneNotes of the team, but it does not show any oneNotes from private channels. Also trying the…

OneNote
OneNote
A family of Microsoft products that enable users to capture, organize, and reuse notes electronically.
93 questions
Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
7,445 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
1,967 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
2,325 questions
asked 2023-07-18T14:01:16.64+00:00
Gary Schellhas 0 Reputation points
answered 2023-07-20T04:50:03.0266667+00:00
Prasad-MSFT 4,216 Reputation points Microsoft Vendor
0 answers

How to recursively read all items using graph api for drive ?

Hello, I have requirement to read all the files metadata from the drive using graph api. The composition of drive includes thousands of folder in multi-level hierarchy. I have implemented a BFS approach which reads each folder and all files from the…

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
467 questions
Microsoft Graph Files API
Microsoft Graph Files API
A Microsoft API to create an app that connects with files across OneDrive, OneDrive for Business, and SharePoint document libraries.
385 questions
asked 2023-07-14T18:43:00.8766667+00:00
Naresh Goty 20 Reputation points
edited the question 2023-07-14T18:45:17.31+00:00
Naresh Goty 20 Reputation points