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
0
votes
0 answers
403 Forbidden error for getting drives for shareddrive mailboxes
I'm trying to send a request for a shared mailbox user: GET https://graph.microsoft.com/v1.0/users/{userId}/drive
This shared mailbox user doesn't have an OneDrive setup.
Expected result: 404 error with Error Code: ResourceNotFound.
Actual Result:…

Ярослав Махнов
- 1
- 1
0
votes
1 answer
MS-Graph-SDK cannot add folder to Drive
I am trying to add a folder to a drive in a SharePoint site. I have tried many examples yet I am always receiving a 500 Internal Server Error. I have allocated and consented to the permissions as stated are required by the ms docs for adding files…

Joao Ricardo
- 311
- 3
- 6
0
votes
1 answer
How can a user get a working token from Microsoft Graph?
I am making an application for Microsoft Teams.
Must get the teams in Microsoft Teams that the user is a direct member of.
If I use the same email under which I registered the application in Active Directory, then getting the list on request to…

Uolary
- 91
- 2
- 7
0
votes
0 answers
Uploading large file word document using microsoft graph API using uploadsession
I am uploading word document using microsoft graph UploadSession. Document uploaded successfully and received uploaded file link which is open in next browser tab using application. But all the data are displays in single line. There is no line…

minu
- 157
- 1
- 3
- 13
0
votes
0 answers
Does site-id/itemId on Sharepoint get regenerated without being prompted?
Context:
I find DriveItem's with request calls like the following:
https://graph.microsoft.com/v1.0/sites/knockycode.sharepoint.com,{siteId},{driveId}/drive/items/{itemId}/children
Keep in mind that {siteId}, {driveId}, and {itemId} are…

Key007
- 143
- 2
- 10
0
votes
1 answer
GraphAPI com.microsoft.graph.core.ClientException Caused by: java.lang.IllegalStateException
I'm using microsoft graph api version 2.3.2 to upload/download the document with sharepoint.
My uploading functionality is working fine. But to download the document randomly sometime facing com.microsoft.graph.core.ClientException: Error during…

Vivek Buddhadev
- 197
- 1
- 22
0
votes
1 answer
MS Graph API: Invalid JWT token. The token is expired
Using MS Graph API driveItem: preview driveItem: preview to edit word document online.
Displaying the MS Word web URL in iframe:
0
votes
1 answer
Unable to edit word document online using o365 MS Graph API getPreviewLinkWithEdit
Using o365 MS Graph API to edit word document online. https://learn.microsoft.com/en-us/graph/api/driveitem-preview?view=graph-rest-beta This feature was working till 22nd JAN 2021. We are not able to edit document online from 27th JAN.
Code:
public…

Mihir
- 572
- 1
- 6
- 24
0
votes
1 answer
General Exception Microsoft Graph API OfficeConversion_ConverterInternal
I've been calling this endpoint for the last month or so by converting my word document into a pdf and its been working fine:
https://graph.microsoft.com/v1.0/drives/{drive_id}/root/children('example.docx')/content?format=pdf
I tried this today and…

Robin Larsson
- 31
- 1
- 6
0
votes
0 answers
MS Graph API: One Drive bot authentification (Python)
I'm trying to create a bot to access One Drive: I need to download files from One Drive and upload them there with a Python program. I'm struggling to authenticate the bot. I have app id, tenant id and client secret as well as 'app email address'…

Anna Denisova
- 13
- 5
0
votes
1 answer
Graph Copy file operation requires OneDrive file to be shared
When I make a copy item request to the Graph API (as per https://learn.microsoft.com/en-us/graph/api/driveitem-copy), I get an "Access Denied" error on the request unless I create a shareable link on the file. My app registration already requests…

Eric Legault
- 5,706
- 2
- 22
- 38
0
votes
0 answers
Microsoft Graph - problems with numbers and date formats when converting Excel (xlsx) to PDF
Using this https://learn.microsoft.com/en-us/graph/api/driveitem-get-content-format?view=graph-rest-1.0&tabs=http to convert Excel (xlsx) files to PDF works fine, EXCEPT one thing: numbers and dates in the exported PDF are presented only in…
0
votes
1 answer
Microsoft Graph Java SDK - Unable to read shared files on Share point
Unable to handle / receive shared events on share point using microsoft graph sdk java. Already implemented webhook according to the official documentation on microsoft developer api. Let me know how can I get those details.
Alternatively is there…

Manish Chandra Ranga
- 151
- 1
- 8
0
votes
3 answers
Error when adding rows to a sharepoint excel workbook table MaxRequestDurationExceeded
here is the full error
{
"error": {
"code": "MaxRequestDurationExceeded",
"message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long.",
"innerError": {
"code":…

chip
- 3,039
- 5
- 35
- 59
0
votes
0 answers
Filtering by file type in Microsoft Graph Shared With Me API
I'm using this to get all files shared with me
GET /me/drive/sharedWithMe
I'm trying to filter for just pptx files shared with me using this but I get back "Only createdDateTime is supported for…

CarineI
- 1