Questions tagged [rest]

The REST (Representational State Transfer) interface in provides access to lists and libraries as a relational data service. A core concept of any RESTful interface is the resource, and in SharePoint Foundation, lists and items are represented as HTTP resources that can be addressed by remote URLs.

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

Setting value of lookup field without lookup Id

Using REST, I am trying to create an item that has a lookup column named Role. In this column's settings I am referencing the Title field. I can create a new item using "RoleId" as shown below, ...
0
votes
1answer
11 views

API issues downloading image, empty file or corrupted image

What I'm trying to accomplish is this. I'm working on an integration web app that lets our techs pull data from our crm and sharepoint. What I'd like to be able to do is display images held in ...
0
votes
0answers
9 views

dev entreprise iOS app that manage share point documents and sites [closed]

I need to connect my iOS app to my entreprise share point to fetch and manage site and documents , how can I use SharePointApi in this state , im looking for some advices. WHICH SDK that I need to ...
0
votes
1answer
33 views

REST api call using method getbyemail for user in a group returns error “Cannot find resource for the request getbytitle”

Users exist in sharepoint group: If I do simple GET request in browser: https://mycompany.sharepoint.com/sites/testsite2/_api/web/sitegroups/getbytitle('TestGroup')/users/getbyemail('john.theuser@...
0
votes
0answers
15 views

Rest API call return 0 items in list even there's data when using App deamon model

In a list I have some items. I want to call Rest api to list these items. When I call the api url from the browser, I get the expected result (items are returned). When I call the api from Insomnia ...
0
votes
0answers
15 views

Seek operation error when uploading a file using REST

I am attempting to upload a text file to a SharePoint 2016 document library. The text file contains a single-line string that represents JSON data: {"User": "JANE A DOE","AssignedTo": "JDOE","...
0
votes
0answers
16 views

CAML filter, RowLimit options not working with Spfx solution

This question may look duplicate but actually i didn't find any proper solution to this. Issue: Threshold error when I am getting items from list more than 5K even after applied filters with indexed ...
1
vote
1answer
21 views

Update person field (multiple selection) using JavaScript without PnP

I am trying to create an SPFx web part using SharePoint 2016. When adding PnP to SharePoint 2016, it's giving me errors and not working like when I add it to a SharePoint online SPFx web part. How can ...
0
votes
0answers
12 views

Create folder in attachments on costum list

I despair slowly. I want to create a folder via JavaScript and rest api in the attachments of a custom list. but I can't find an example on the internet. Who can help me? My List Name ist "Reviews" ...
0
votes
0answers
30 views

REST API not finding Item just created

I have a list that if certain conditions are met will create 1 item each in 2 separate lists in a different SharePoint site collection. I have enabled the 'recursive workflow' successfully in a ...
1
vote
1answer
17 views

How to add fields like Text1, Text2 or Number1 Number2 to Formula in Enterprise Custom Fields for Reporting in Project Online/ Project server

How to add fields like Text1, Text2 or Number1 Number2 to Formula in Enterprise Custom Fields for Reporting in Project Online/ Project server. In formula I am not able to find the property Text1 or ...
0
votes
1answer
51 views

Access home page of a sharepoint online site from code

I have a sharepoint site hosted at: https://xxxxx.sharepoint.com, which has a subsite named abc when I type in https://xxxx.sharepoint.com/abc in the browser, it redirects to the welcome page of the ...
0
votes
1answer
46 views

Excel file is not checked in after uploading to Sharepoint with Python

I have taken the following code from other post. This is very good and working fine. import requests from requests_ntlm import HttpNtlmAuth session = requests.Session() session.auth = HttpNtlmAuth('...
0
votes
0answers
19 views

Check user authentication from .NET Core API

I need to create a series of Add-Ins for SharePoint online, these will have to call a .NET Core REST API. How can I validate that the call is being made from an authenticated user on the given site?
0
votes
1answer
55 views

SharePoint REST request for 'breakroleinheritance' with special character in folder name

I am making a REST request to SharePoint for breaking the role inheritance for a folder. It's working fine when a folder does not have any special character in it's name. But when I add special ...
0
votes
0answers
21 views

When to use JSOM over REST API

Is there any specific scenario where I should use JSOM instead of REST while doing SharePoint development? I want to know is there any limitations for SharePoint REST API when comparing to JSOM.
1
vote
1answer
37 views

Get Predecessors of a Task along with its Start - Id and End - Id using a single request

My requirement is to fetch all the task links of a Project with Start - Id and End - Id of every task link. Currently I am only able to fetch LinkId, ProjUid, Lag and Dependency type using REST API: ...
0
votes
2answers
76 views

SharePoint Online sitegroups REST query in graph API

I have a question regarding quering site groups via REST Graph API instead of SharePoint REST API. Currently I need to query SharePoint REST API to find implicit groups (*Visitors, *Members, *Owners) ...
0
votes
1answer
37 views

Creating repeating all day events with Flow

I'm using a Flow to copy events from a calendar in one site to a calendar in another site. It is triggered on Item created or modified, then puts a rest call to get the item information (there are ...
1
vote
1answer
131 views

Flow to copy calendar items from one site collection to another

Due to lack of a built-in Modern Calendar interface and our corporation's restrictions on what we can do within the sites in our tenant, I'm trying to build a Flow in Power Automate that copies ...
1
vote
2answers
141 views

How can I upload a document to a sharepoint subfolder using the REST API?

I'm using the official Office365-REST-Python-Client which basically is a wrapper to submit HTTP requests. I'm looking at the documentation and have been succesfully able to upload documents to the ...
0
votes
1answer
46 views

How retrieve managed meta data field values using rest api

I have a SharePoint list which has managed meta data field& lookup field. I want to retrieve the field values and show in HTML table format using rest api.
0
votes
1answer
56 views

Retrieve Project and all it's tasks by Id

I'm new to SharePoint, I have been trying to retrieve a single Project and all its Tasks by doing the following: https://servername.sharepoint.com/sites/pwa/_api/ProjectServer/Projects('xxxxxxxx-xxxx-...
0
votes
1answer
53 views

NotFound coming back from SubmitFile

Hi I've got a hightrust application on sharepoint 2016. On development the submitfile worked although the website and the sharepoint site were both on the same server. Moving to staging and the ...
1
vote
1answer
25 views

How get task items according to current sorting using rest api

In a task list, we can move up and down items, now I want get items according to current sorting using Rest API, not by ID, Title or other fields. By default when I get the items without order option,...
1
vote
0answers
22 views

RenderListDataAsStream REST API endpoint support in SP2013 On-Prem?

Is the RenderListDataAsStream REST API endpoint supported in SharePoint 2013 On-Prem? When using POSTMAN to craft a POST REST query, I'm getting a 'NotFound' return.
0
votes
1answer
94 views

Authentication methods for SharePoint REST API

Let's say I work in company AAA and want to automatically upload documents to BBB's company SharePoint Online application https://BBB.sharepoint.com using REST API. My email username@AAA.com is ...
0
votes
2answers
25 views

Unable to send a POST request to add a new item

I am trying to make a POST request to add a new item to a SharePoint list in SharePoint online, from a classic page. I am having this code in my custom action: var url = location.href var ...
0
votes
1answer
26 views

Prevent authentication prompt on REST call in javaScript

I am making a custom "Delete item" button for my list. The issue I am facing is that when the user attempting to delete the item does not have the permission to do so, besides the API failing, I think ...
0
votes
1answer
48 views

Managing Content Type using REST API

How can i manage Content Type in SharePoint List using REST API, it's look like a very wide question, isn't it ? well what i'm looking for exactly is: How to change content type visibility option to ...
1
vote
1answer
146 views

Download multiple files at a time from using HTTP Rest API Calls

I am able to download a file from SharePoint using the API GetFolderByServerRelativeUrl. However I'm looking to download selected files at once from SharePoint. Is there any possibility to do this?
0
votes
1answer
67 views

How to update “Person or Group” column in SharePoint List using REST API

I am looking for a way to update a column of type "Person or Group" using HTTP Request of type REST. Thank you.
0
votes
1answer
22 views

Creating folder in SharePoint Library using Rest API

I want to create a folder inside "Communications" document library in below site using rest api. https://contoso.sharepoint.com/sites/SP Can you please assist on how to do that?
0
votes
4answers
144 views

How to change “Person or Group” autocomplete field to dropdown list

I am looking for a way to change the autocomplete field of "Person or Group" to a dropdown list. I checked the Lookup field solution, that doesn't suit me, i only need to transform the autocomplete ...
0
votes
1answer
69 views

Query multiple sharepoint lists with big data

Our SharePoint 2016 site consists of 14 custom lists where each list has approximately 500 list items. We wanted a way to query all 14 lists by PR NO which is common in all lists. We were looking for ...
0
votes
3answers
64 views

How to access Person or Group column in REST API Url

I am trying to access Person or Group column using REST API, but it is giving an error "BAD URL". Can someone please help me with this ? _api/web/lists/getByTitle('Plan')/getitems?$select=WRNo Here ...
0
votes
0answers
62 views

How to use Microsoft Flow update file properties in Picture type column in sharepoint document library

How could I use MS Flow to update file properties which is in "Picture" type? I search some using REST api but they are updating list item properties, how could I apply the same method in document ...
0
votes
0answers
7 views

Get all workflow tasks and their outcome associated with a SP2010 and SP2013 workflows that are operating on a given list item through JSOM or REST

I would any help that could be provided. Is this even possible (even if in separate REST or JSOM calls)?
1
vote
0answers
44 views

How do you delete tasks from Project Server via REST?

TL;DR - it appears to be impossible to delete tasks from Project Server using the REST API. Please, someone suggest something to me, because this is excruciatingly frustrating. I'm trying to delete ...
0
votes
0answers
10 views

What is returned when deleting tasks from Project Server using REST? 'Unexpected end of JSON input' from HttpClientResponse.json()

I'm working on an SPFx webpart to do some interactions with Project Server. As part of this, I need to delete some tasks. I have a function that deletes tasks using HttpClient.fetch() with a DELETE ...
0
votes
2answers
265 views

How to update SP List Default view using REST API

I am looking to update my list default view (All Items) using REST API, what i am looking exactly is to show/hide columns. When i checked the result of this request: https://m365x873105.sharepoint....
1
vote
1answer
18 views

Access Lookup Table for local custom field on Project Server?

Scenario: a user has an .mpp project file they work with locally. They set up a local custom text field to use a lookup table. They then upload and save that file to a Project Server / PWA instance, ...
0
votes
1answer
38 views

I want to get a user property using API REST

I am planning to get a user property (any information like email, id, title ... etc) using API REST, https://m365x873105.sharepoint.com/sites/BBS-support/_api/web/siteusers(@v)?@v='c:0t.c|tenant|...
1
vote
2answers
22 views

How to get better error 400 error message for list item updates via REST?

I am changing a lot of fields with a REST POST/MERGE request to a list item. When an input is wrong, is there a way to figure out WHICH field caused the 400 error? All I get is this useless response: ...
0
votes
0answers
23 views

Converting SharePoint 2010 REST code to SharePoint 2013 REST

I'm a new developer to my department and I'm tasked with converting older URI's on our SharePoint site to REST API. Unfortunately I'm completely new to this, so I'm not sure how to go about it The ...
2
votes
0answers
107 views

Restore List Items deleted via REST?

I called DELETE on an Sharepoint URL like sharepoint.client.com/sites/my_site/_api/Web/Lists/GetByTitle('myList')/Items(12345). I did not append /recycle(). GET _api/web/RecycleBin is empty. Is there ...
0
votes
2answers
19 views

What is the API, given a user ID, to tell me permissions for a user of a list item ID?

I have an application that needs to be able to use my SharePoint API to check if a user AD\USERNAME has access to see a list item. I have the server relative URL of the list item, and the object ...
0
votes
0answers
79 views

Check if a document is locked by a user in a Flow

I am trying to check if a document has been locked for editing in a Flow. I found a way to do this from this blog https://veenstra.me.uk/2019/09/26/microsoft-flow-handling-file-locks-in-sharepoint/ ...
0
votes
1answer
28 views

Get all subfolders and files in one call and limit fields returned, plus sorted alphabetically

REST get all subfolder and files in one call, limiting the fields returned and sort by folder or file name. I currently have a URL at: https://domain.sharepoint.com/sites/subsite/_api/Web/...
1
vote
1answer
21 views

Page create with REST missing CEWP

I'm trying to create a publishing page following this thread and the page is being created in the library. Basically using creating a template <%@ Page Inherits="Microsoft.SharePoint.Publishing....

1
2 3 4 5
44