onedrive

Detect if file is open and being edited

[亡魂溺海] 提交于 2020-08-10 16:41:02
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

Detect if file is open and being edited

江枫思渺然 提交于 2020-08-10 16:39:25
问题 Is there a way to detect within a 365 Addin, if a file is currently being edited before deleting from OneDrive? I checked documentations for Microsoft Graph, Office Dev and OneDrive but didn't find anything. If there currently isn't way, is Microsoft considering to make a call or service for the future? Thank you, 回答1: unfortunately there isn't a way to do this right now. However, if a file is currently being edited, then DELETE will return an error, since the file is effectively locked by

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

Getting Unable to retrieve user's mysite URL even if the drive exists

懵懂的女人 提交于 2020-07-10 06:48:05
问题 When querying the Graph with the PHP library for a given drive I receive 400 Unable to retrieve user's mysite URL or 429 Too many requests . When I call for example https://graph.microsoft.com/v1.0/users/b0633c25-2655-4dfe-a2b2-078e4310deba/drive with the PHP library it gives this weird result. When I query the same url in the Graph Explorer. It works like a charm. I've set up the permissions as described in the docs and have the E3 Developers subscription that is still valid. What am I

Getting Unable to retrieve user's mysite URL even if the drive exists

自古美人都是妖i 提交于 2020-07-10 06:47:28
问题 When querying the Graph with the PHP library for a given drive I receive 400 Unable to retrieve user's mysite URL or 429 Too many requests . When I call for example https://graph.microsoft.com/v1.0/users/b0633c25-2655-4dfe-a2b2-078e4310deba/drive with the PHP library it gives this weird result. When I query the same url in the Graph Explorer. It works like a charm. I've set up the permissions as described in the docs and have the E3 Developers subscription that is still valid. What am I

Getting the drive's items from Microsoft Graph API: The request is malformed or incorrect

妖精的绣舞 提交于 2020-06-28 04:24:48
问题 I am trying to get a drive's items via the Microsoft Graph Api (SDK) and tried the following options: _graphServiceClient.Drives[driveInfo.Id].Items.Request().GetAsync() :, this unfortunately results in an error with message error with message "The request is malformed or incorrect" and code "invalidRequest" . If I execute _graphServiceClient.Drives[driveInfo.Id].Request().GetAsync() however, I get back all drives but the Items property is null . _graphServiceClient.Drives[driveInfo.Id]

Reading OneDrive files to R

大憨熊 提交于 2020-06-14 06:06:14
问题 When I read in csv files from Dropbox into R , I right-click the file and click share Dropbox link . I then have a URL something like: https://www.dropbox.com/blahhhhhhhhhh.csv?dl=0 So I change it to: read.csv("http://dl.dropbox.com/blahhhhhhhhhh.csv?dl=0", ...) and it works without the need to use any packages etc. Is there a way to read files from OneDrive in a similar manner? https://onedrive.live.com/blahhhhhhhhhhhhhhhhccsv As when I try to read it into R it doesn't give me the data frame

Find the “Shared with me” Folder Id (Drive Id) and Files Id - OneDrive, Microsoft Graph, Python

你离开我真会死。 提交于 2020-06-09 05:29:17
问题 My clients shared some onedrive folder with me which contains 5 Files, I want to find the drive-Id, File-Id, so that I can download using python scripts, Script reference: Not able to download files from inside folder, OneDrive, Microsoft Graph, Python I am trying below script: requests.get('https://graph.microsoft.com/v1.0/me/drive/sharedWithMe', headers={'Authorization': 'Bearer ' + Access_Token}).content requests.get('https://graph.microsoft.com/v1.0/me/drives', headers={'Authorization':

Find the “Shared with me” Folder Id (Drive Id) and Files Id - OneDrive, Microsoft Graph, Python

北战南征 提交于 2020-06-09 05:28:07
问题 My clients shared some onedrive folder with me which contains 5 Files, I want to find the drive-Id, File-Id, so that I can download using python scripts, Script reference: Not able to download files from inside folder, OneDrive, Microsoft Graph, Python I am trying below script: requests.get('https://graph.microsoft.com/v1.0/me/drive/sharedWithMe', headers={'Authorization': 'Bearer ' + Access_Token}).content requests.get('https://graph.microsoft.com/v1.0/me/drives', headers={'Authorization':