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.
Questions tagged [microsoft-graph-files]
204 questions
1
vote
2 answers
Microsoft graph send email with attachments
Im using a service of microsoft graph to send an email with attachments.
but when i sent the mail this dont have the attachments that i set to it.
this is my Json that i generate
` message: {
attachments: attachments[],
…

Juan Saul
- 11
- 5
1
vote
2 answers
Get all the files in others Onedrive in MS Graph
I am trying to list all files in another user's OneDrive.
I am calling GET /users/{user-id}/drive/items/{item-id}/children but my problem is that I do not know how to get the {item-id}.
I tried using…

JessieBear
- 133
- 1
- 14
1
vote
2 answers
How to request file content from a folder on a sharepoint site using sharepoint API or Microsoft Graph?
I need to get the content of a file (in this case the text written in a notepad file) that's located on a sharepoint site. I have learned this could be done by using Microsoft Graph or the sharepoint API. Because I have previously used Microsoft…

Felix Bing
- 13
- 8
1
vote
1 answer
Microsoft Graph list children including grandchildren
Is there a way to recursively include the content of the children (grandchild) in one request in the Microsoft Graph API?
I want to query folder /foo/ and also get the content of /foo/baar/ e.g /foo/baar/baz.txt.
IGraphServiceClient graphClient =…

Jules
- 189
- 1
- 5
- 20
1
vote
0 answers
serviceNotAvailable when accessing drives with app permissions
This "drives" me crazy... I have an AAD app with following application permissions with Admin…

Daniel Pfäffli
- 13
- 3
1
vote
0 answers
Need help in constructing Microsoft Graph API url
I am trying to access files from DocumentLibrarie (DL) available in SharePoint online using Graph API. As per Microsoft's Graph API documentation this needs to be done using {driveId}. To fetch the driveId i am using user-friendly DL name, as…

user527614
- 465
- 5
- 19
1
vote
1 answer
Is there any way to bulk delete all permissions of a file using the IGraphServiceClient?
As part of a user action, we are using the MS Graph Java SDK to first list all permissions of a file, then iterating over the list of permissions to delete each one individually. This seems to have some performance issues. We were wondering if there…

Bill Collab
- 21
- 1
1
vote
0 answers
What can we do about the performance issues we are experiencing with the resumable upload API using MS Graph Java SDK
We are using the Java SDK to first create an upload session, then upload the document. We are currently uploading in chunks of 10 MB (as recommended by public documentation:…

Bill Collab
- 21
- 1
1
vote
1 answer
DriveItem Preview returns "Hmm... looks like this file does not have a preview we can show"
I am using Microsoft Graph to preview an item stored in SharePoint.
I tried the driveItem: preview API and I am getting a URL return like…

Charanjot Singh
- 11
- 2
1
vote
0 answers
Searching OneDrive for documents with non-western text via Microsoft Graph API
How do I search my OneDrive for terms with non-Western characters in it?
For example, I have an Excel file which has the text "Tetsuo" and "悠真" in two separate cells.
Using the Microsoft Graph API Explorer, I am running the following tests
The…

Alistair Jones
- 553
- 4
- 10
1
vote
1 answer
Microsoft Graph v1.0 - Convert to other formats - pptm not supported
According to the documentation of the microsoft graph v1.0 api it is possible to convert a pptm file to a pdf file. See
When I call the API a get a 406 - not supported response (InputFormatNotSupported).
This happens with the sdk and via a basic…

Chris
- 43
- 4
1
vote
0 answers
Using MSGraph API to get OneDrive Business file info including the latest version id
I'm calling the get item API to get a file's info. In addition I would like to get its latest version's id. I can do that by issuing two requests:
GET /me/drive/items/{item id} - for getting the file's metadata.
GET /me/drive/items/{item…

galsh83
- 550
- 3
- 16
1
vote
1 answer
Microsoft Graph API $filter=name eq 'foo' query not working on GET workbook/tables/{id}/columns. No error and no filtering
I'm looking at a table (Table1) inside an Excel book saved on my OneDrive for Business account. I then want to get the maximum value in the CREATEDDATE column from this table.
I want to avoid pulling down the whole table with the API, so I'm trying…

chase hill
- 13
- 2
1
vote
1 answer
Cannot Upload File to OneDrive with Java SDK
I cannot upload a file to OneDrive using the MS Graph Java SDK, nor can I find any Java-based examples.
I have found a similar (but unanswered) question here: MS Graph Java SDK: how to upload a large file to OneDrive?
However, I've managed to cobble…

etovian
- 23
- 7
1
vote
0 answers
Attempt to upload file results in 403 - notAllowed response
I am trying to use Microsoft REST API to upload a file to OneDrive.
I am passing access token to the request which I have got from Azure AD service:
URL urlTest = new…

Ravina Somvanshi
- 63
- 6