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
0
votes
1 answer

Microsoft Graph returns same items on drive search

When searching for the items on Group drive with the pagination, returned subset sometimes contains the same items. Let's say I have 6 files on Group 1. Files are named File 1, File 2, File 3 etc. With the query below, I get 3 random files e.g. File…
woopata
  • 875
  • 5
  • 17
  • 29
0
votes
1 answer

Do I have to be logged in to search files in MS Graph?

I have already asked a question about searching files(One Drive DataItems) in MS Graph and wanted to ask can I also start a search without being logged in ? So if I create a daemon(or Background-Service) as shown in the webhook with MS Graph…
0
votes
1 answer

Filter functionality in MS Graph Delta with OneDrive

How can I use the filter in the IDriveItemDeltaRequest correctly with C# and ASP.NET Core? The interface says the following about filters // Adds the specified filter value to the request. // // value: // The filter value. …
0
votes
1 answer

Not able to publish Teams app zip package by using microsoft graph api

I want to upload my teams app package to catalog but i am not able to do it. I am following https://learn.microsoft.com/en-us/graph/api/teamsapp-publish?view=graph-rest-1.0&tabs=http After executing curl request getting…
0
votes
1 answer

How to receive a converted file from microsoft graph api

I'm having a problem saving a pdf I am receiving from microsoft graph api. I am making the following call using the configuration I construct: const convertConfig = { headers: { Authorization:
0
votes
1 answer

Issue with granting permissions to user in SharePoint using Graph API

We have been having a problem in granting users permissions on certain documents in SharePoint using graph API The Idea is to use /sites/{siteId}/drive/items/{itemId}/invite graph API to grant users permission on document level, we have followed the…
0
votes
1 answer

Microsoft onedrive in html

I have this code here to read a file on onedrive: PATCH /me/drive/items/{item-id} Content-type: application/json { "name": "new-file-name.docx" } And to update a file: PUT /me/drive/items/{item-id}/content Content-Type: text/plain The contents…
0
votes
0 answers

Microsoft Graph API - /drive/root/children always empty, I am not getting what i am doing wrong

I am getting access token from user with the scopes that I need which are Files.Read as shown below stdClass Object ( [token_type] => Bearer [scope] => Files.Read Files.Read.All Files.ReadWrite.All Mail.Read Sites.Read.All User.Read profile openid…
0
votes
1 answer

createRequest hangs with php microsoft graph

I'm using the php SDK for microsoft graph to upload files to sharepoint. From time to time, the createRequest command hangs, and I'm not sure how to debug it. When I make a simple request, (e.g GET /me) it works. $graph = new Graph(); …
0
votes
2 answers

Graph Api: search file for exact match

I have a file called "ABC_file1.docx". I want to perform a search of a specific file name in a specific folder. My code is: var fileName = "ABC_file1.docx"; var files = _graphClient .Drives[] …
0
votes
1 answer

OneDrive Graph API: Get User ID associated with drive ID

I have an ID of an OneDrive drive. Is there any way I can figure out the user ID to whom the OneDrive drive belongs to?
0
votes
0 answers

OneNote API: Create notebook without table of contents

I can create OneNote notebook in OneDrive using https://graph.microsoft.com/v1.0/me/onenote/notebooks This notebook is always created with default TOC. Is there any way I can create notebook without TOC or delete created default TOC? This is needed…
0
votes
1 answer

Mapping between item created using OneNote API and item returned from OneDrive delta query

I have created a NoteBook in OneDrive using OneNote API (https://graph.microsoft.com/v1.0/me/onenote/notebooks) Now when I run delta query to get changed items in OneDrive (https://graph.microsoft.com/v1.0/me/drive/root/delta) I can see the newly…
0
votes
1 answer

OneNote API: Notebook is created always under notebooks folder in OneDrive

I am trying to create OneNote NoteBook using OneNote API. (https://graph.microsoft.com/v1.0/me/onenote/notebooks) I can see that there is no way to specify a folder path. It always creates a new NoteBook under "notebooks" folder in OneDrive. Is this…
0
votes
1 answer

Graph API OneNote: Create section with page content

I have a requirement where I need to download the OneNote notebook and upload it again on demand. I am using Graph API (DriveItem API) to track changes in the OneNote notebook and download it. Now when I download it I an see that for section and…