microsoft-graph-files

How to upgrade from OneDrive SDK to Microsoft Graph SDK and keep the old AppFolder

倾然丶 夕夏残阳落幕 提交于 2021-02-11 14:59:27
问题 My UWP app uses app folder ( Files.ReadWrite.AppFolder ) for storing app data on OneDrive. I upgraded the app to use Microsoft Graph SDK instead of the old OneDrive SDK (version 1.x). I didn't get the authentication to work using the old client id registered in https://apps.dev.microsoft.com, so I registered my app in https://aad.portal.azure.com/ and I use MSAL.NET for authentication. The problem is that the upgraded app creates a new app folder on OneDrive ( My App 1 ) instead of using the

Microsoft Update DriveItem API throwing locked exception if the file is open in desktop

馋奶兔 提交于 2021-01-29 16:24:59
问题 1.This is the behavior I am observing when I use Update DriveItem graph API to update my file name.https://docs.microsoft.com/en-us/graph/api/driveitem-update?view=graph-rest-1.0&tabs=http. 2.If the file is open in my office desktop document it throws locked exception. If i close the file renaming works fine. 3.I tested same in sharepoint their UI ,I am able to rename the file.But through graph API it throws locked exception if file is open. Is this error expected ?. How can I get around this

Error when adding rows to a sharepoint excel workbook table MaxRequestDurationExceeded

此生再无相见时 提交于 2020-12-15 00:44:53
问题 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": "gatewayTimeoutUncategorized", "message": "The service wasn't able to complete the request within the time limit.", "innerError": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long." }, "date": "2020-11-24T02

Error when adding rows to a sharepoint excel workbook table MaxRequestDurationExceeded

隐身守侯 提交于 2020-12-15 00:44:50
问题 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": "gatewayTimeoutUncategorized", "message": "The service wasn't able to complete the request within the time limit.", "innerError": { "code": "MaxRequestDurationExceeded", "message": "We're sorry. We couldn't finish what you asked us to do because it was taking too long." }, "date": "2020-11-24T02

Microsoft Graph Error - Resource not found for the segment 'root:' when uploading file to OneDrive

ぃ、小莉子 提交于 2020-07-31 05:27:15
问题 When working on this tutorial on Uploading File to OneDrive from Microsoft Graph OneDrive team, I'm getting the following error at the last line of the code shown below: Remarks : There are some posts online with a related issue, (such as: This, or this, or this or this or this). But they all seem to have a different context or do not have a response. Question : What could be the issue, and how can we resolve it Resource not found for the segment 'root:' Relevant Code : GraphServiceClient

Microsoft Graph Error - Resource not found for the segment 'root:' when uploading file to OneDrive

自闭症网瘾萝莉.ら 提交于 2020-07-31 05:24:33
问题 When working on this tutorial on Uploading File to OneDrive from Microsoft Graph OneDrive team, I'm getting the following error at the last line of the code shown below: Remarks : There are some posts online with a related issue, (such as: This, or this, or this or this or this). But they all seem to have a different context or do not have a response. Question : What could be the issue, and how can we resolve it Resource not found for the segment 'root:' Relevant Code : GraphServiceClient

Unable to upload new file (<4MB) to SharePoint (ms graph api)

↘锁芯ラ 提交于 2020-06-29 04:19:26
问题 I'm trying to upload an attachment i get from Outlook to a folder inside a SharePoint document library. I am Following the docs: https://docs.microsoft.com/en-us/graph/api/driveitem-put-content?view=graph-rest-1.0&tabs=http#http-request-to-upload-a-new-file fetch(`https://graph.microsoft.com/v1.0/sites/${siteId}/drive/items/${parentId}:/${attachment.name}:/content`, { method: 'PUT', mode: 'cors', headers: new Headers({ 'Authorization': `Bearer ${accesToken}`, 'Content-Type': 'text/plain' }),

Sharepoint Graph API strange behaviour while trying to get download link for a file

大兔子大兔子 提交于 2020-06-17 15:53:09
问题 I'm trying to get file content. When I'm calling GET /sites/{site-id}/drive/root:/{item-path} Response contains all information about the file, but no @microsoft.graph.downloadUrl field is returned. { "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#sites('domain.sharepoint.com%2Ccc252463-cda2-3eb2-b15e-8836305f1420%2Cc0db7f82-b16f-4fe5-9885-7e434b11e5b8')/drives('b%21k3l2zKLNsk50Log2MF7UIBtTYFV32M5EtW4ZTyYF38gyZs2y-wOfSL0tPWbYys-4')/root/$entity", "cTag": "\"c:{0e8182ec-5ee9