Content
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":…
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…
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…
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…
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…
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…
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,…
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…
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
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…
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:…
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…
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?
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…
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…
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 :…
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…
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…
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…
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…