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
1
vote
1 answer

Creating a list column returns undesired result

I am in need of creating a custom column for a SharePoint list. I need to add custom metadata to the files I will be saving under that list. I followed the instructions in the official documentation; Nonetheless, I'm getting an unexpected result…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
1
vote
2 answers

Microsoft Graph create share link for specific people

I would like to share document by link in sharepoint from microsoft graph code. Default behaviour is that every person who has link can see this file. I want to make this link working just for specific people. So my code look like this: Permission…
1
vote
1 answer

Access OneDrive file with .svc extension using Microsoft graph API

We have to access several OneDrive files using Microsoft graph API. This works well until we met some file whose name ends with .svc (they are regular files). We have a request that looks…
1
vote
0 answers

Getting 400 Bad Request with Error code 'noResolvedUsers' when granting permission to a valid email address using Microsoft Graph API

The below graph endpoint is used to grant access to the recipients on a drive item. POST /drives/{drive-id}/items/{item-id}/invite We are getting 400 Bad Request with Error code noResolvedUser, when a valid email address is added as…
1
vote
1 answer

Graph API: Get all versions of all OneDrive items in single query

Is there any way in which I can get all the versions of all OneDrive items in my Drive using Graph API. And I want a single query to complete this work. DriveItemVersion resource type doesn't seem to support this…
user13260866
  • 131
  • 1
  • 2
  • 9
1
vote
1 answer

Ms Graph : How to Defer Commit of a file with the SDK?

I would like to defer the file commit's when i use the SDK upload session. This is possible with the API : https://learn.microsoft.com/en-us/graph/api/driveitem-createuploadsession?view=graph-rest-1.0 { "item":…
1
vote
1 answer

Uppload data from JSON to Sharepoint List with Microsoft Graph API in Python

I am trying to add some data from a JSON file that has the same structure as a goal SharePoint list. I have previously checked that I can access the list with a get method and that I can authenticate and get the token. The problem is that I can't…
1
vote
1 answer

How do I add a file into a HTTP PUT request calling the Microsoft Graph API?

I am trying to upload a file to a SharePoint Drive by using Microsoft Graph. I am new to REST APIs and Microsoft Graph. This is what the documentation says: PUT /me/drive/root:/FolderA/FileB.txt:/content Content-Type: text/plain The contents of the…
Pujan Tandukar
  • 41
  • 1
  • 1
  • 3
1
vote
1 answer

Microsoft Graph API, corrupted files

I am using this document to upload excel files to OneDrive https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content?view=odsp-graph-online. The API call in Postman…
Tuấn Lê
  • 11
  • 2
1
vote
1 answer

Graph API: Is there any way to download items in OneDrive Recycle bin?

I am not able to find any way to download items in OneDrive Recycle bin using Graph APIs. Is this functionality supported? Please let me know if anyone has any idea about this. Have gone through following old threads which say this is not supported.…
1
vote
1 answer

InvalidRequest moving DriveItem between Drives

I am trying to move a DriveItem located in the root drive of a parent SharePoint site to a child sub-site. Parent site: mydomain.sharepoint.com/sites/Graph - List: Documents Child Site mydomain.sharepoint.com/sites/Graph/SubwebA - List: Documents I…
1
vote
1 answer

Is there any REST API for creating new Excel (.xlsx) file in OneDrive cloud

I'm trying to create a new excel file in OneDrive with the below properties of the REST API call. URL: https://graph.microsoft.com//v1.0/me/drive/root/children Body: { "name": "MyFile.xlsx", "file": {}, …
1
vote
1 answer

How is it possible to upload thousands of images to SharePoint list's image column using Microsoft Graph C#?

I am beginner for development apps for SharePoint and I am not sure that here is a right place to ask my question, so please accept my apologize for any convince. Although, I would like to upload thousands of images from my company's file server (or…
1
vote
1 answer

Microsoft Graph Drives Filter doesn't apply

I try to get SharePoint library by name using Micrsoft Graph. Following query return names of two libraries (drives, to be more precise): https://graph.microsoft.com/v1.0/sites/SiteID/drives?$select=name,id Result: { "@odata.context":…
1
vote
1 answer

Microsoft Graph API get list of columns associated with a content type

Is it possible through the Microsoft Graph API to enumerate the columns associated with a content type? For example, you can enumerate the columns for a particular document library using the following…
Mike
  • 1,031
  • 14
  • 36