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
1answer
10 views

REST call to SharePoint Online from Designer Workflow

I have been trying to get user manager using REST call from SharePoint Designer [https://site_url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v=%27i%3A0%23.f%7Cmembership%...
0
votes
2answers
22 views

How to save the value of a Yes/No Checkbox via Sharepoint 2016 REST API onPrem?

How do you save checked/unchecked for sharepoint 2016 on-prem via the REST api? I have a couple input text boxes saving text, but I'm can't save yes/no for cbAttending, I can't seem to get the value ...
1
vote
0answers
11 views

REST API - File moved - Origin server relative url

When a file is moved in SharePoint, I can catch the event using the GetChanges API. _api/web/lists('listid')/GetChanges My issue is that I need to retrieve the origin and destination server relative ...
0
votes
0answers
13 views

Accessing SP List using Rest-APi

var url = serverRelativeUrl + "MyServer/_api/web/lists/GetByTitle('Test')/items"; var httpRequest = $http({ method: 'GET', url: url, crossDomain: true, ...
0
votes
0answers
10 views

consume sharepoint REST web services from html

I want to access list items and files in document library in a sharepoint OnPremise site from my HTML application hosting in another server without any server side coding. I mean i want to ...
0
votes
1answer
17 views

How to Create a Multiple People Picker field in a HTML form using JQuery

I want to create a People picker field in a HTML Form, which should accepts multiple people names, with comma or semicolon separated, Usually I create a input text field in the HTML form and then ...
0
votes
1answer
13 views

409 conflict error when deleting multiple attachments using PnP js or REST

I am trying to delete multiple attachments from list item as below private _deleteOneByOneAttachment(ln: string, id: any, file: any):Promise<any>{ let item = sp.web.lists.getByTitle(ln)....
-1
votes
0answers
16 views

How to Create Swagger REST API to communicate with Sharepoint Online [closed]

I have to create Swagger REST API to communicate with SharePoint Online. i.e I have to create Document library in SharePoint Site using that Rest API Method. Any help would be appreciated, Thanks in ...
1
vote
1answer
35 views

Change Sharepoint task parent id via REST

I'm trying to move a subtask from one parent to another. I could change the tasks name with such a PATCH query: PATCH /sites/PWA/_api/ProjectServer/Projects('4b951130-e0b9-e911-910f-001dd8b71c8d')/...
1
vote
1answer
41 views

Item ID doesn't match the list item number

I have a SharePoint list for which I need to open with a custom Edit Form using the item ID, but I notice that the item number doesn't match the ID. For example:when I access the list using REST: ...
0
votes
0answers
9 views

How to login with API key?

I'm using the php library https://github.com/vgrem/phpSPO to connect my symfony application to our sharepoint online. This is working fine with normal username and password authentication. But I would ...
0
votes
1answer
22 views

Assign permission of the current user to a list item programmatically

I am making an event web part which is connected to a list of items. When a user attends an event, a json object will be parsed to a txt document that is attached to that particular list item /event. ...
0
votes
0answers
24 views

Create SharePoint Site Using REST API and Powershell

I'm trying to create a SharePoint site using the REST API with Powershell. I've successfully created lists, modified lists, and many other things but creating a site has me stumped. Below is the ...
0
votes
2answers
25 views

GetFileByServerRelativeUrl is returning 400 bad request

I am trying to download file from SharePoint using below code url ='https://site_url/_api/web/GetFileByServerRelativeUrl("/PraveenTest/Test/file_name")/$value' headers = {Authorization: "Bearer" + ...
0
votes
1answer
18 views

Adding request limit to Sharepoint/Office 365 API List search

I have a url I am using to query a list in Sharepoint formatted as below. http://sites/sites/site/_api/web/lists/getbytitle%example%/items?$select=Email/EMail&$expand=Email Because my list has ...
0
votes
1answer
36 views

403 Error on REST call in SharePoint Workflow

I have a list called Project Log on a sub-site which need to automatically copy any item created in it to another List on the parent site called Master Project Log. This has to be accomplished using ...
3
votes
2answers
107 views

How to disable “Connect to Teams” banner in SharePoint Online

We have a set of Group connected Team sites in SharePoint Online and we don't want to connect them to Microsoft Teams due to some specific business need. The problem is that whenever an Owner of the ...
0
votes
1answer
27 views

How To insert field of type lookup in the SharePoint List

I have a list with name Product Catalog and there are two lookup fields with name Country Preference and Location Preference one date field and multiselect field. I tested with list name without any ...
0
votes
1answer
18 views

Linked SharePoint List not producing correct data in REST query?

I am trying to use the Office 365 SharePoint REST API to pull data stored in a list on SharePoint. There are 2 columns in the list that lookup to another list. I am trying to query the list using: ....
1
vote
1answer
29 views

Web part list items count

I have a list built using web part. I want count of that web part list. Scenario: I have List A. Created list B and added web part into it which points to list A. I want list item count of list B. ...
0
votes
1answer
26 views

SharePoint Rest Service sorting is not working

I am trying to add the sorting on SharePoint list using Rest services but it is not working. I am adding sorting on the basis of particular columns(Description, Col_Order), columns have values 1,2. ...
3
votes
1answer
101 views

Pass file name having space to update operation using REST API

I am using on premise SharePoint server 2016.I am using rest api to update a list.I have a list having space in it's name so while passing this name it causes problem.Is it possible to pass file name ...
0
votes
1answer
105 views

REST API for setting Multiple users people picker in SharePoint

I inherited a custom application from another developer who used REST API to create list items. Now the requirement is to add a multiple users people picker to the form. I am able to add a multiple ...
1
vote
2answers
32 views

Update 1st row always of sharepoint list

I am using REST API to update in custom list of SharePoint Server. It is a dashboard and displays result as per logged in user. Is it possible to update 1st row always using REST API irrespective of ...
0
votes
0answers
22 views

Odd Behavior for Rest API lookup Column filtering

I've recently been working on a project requiring Rest Queries against a large SharePoint list (5000+ items) and ran into an interaction I can't quite find an explanation for. The scenario is that I ...
1
vote
1answer
42 views

Rest API throttle when filtering on look up column

I'm developing a custom sharepoint solution (SP 2016) where I'm retrieving data from a list with 5000+ items in it. In one of the API calls I'm trying to filter on a look up field where the list in ...
0
votes
1answer
59 views

An unexpected 'PrimitiveValue' node was found when reading from the JSON reader

I am getting this error while trying to post data to SharePoint list. It has one lookup field PostCategory. {"readyState":4,"responseText":"{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client....
0
votes
1answer
14 views

SharePoint 2013 -Compare values in list to see if all column values match- dashboard

I want to create a dashboard indicating when all items in a list are equal to "Yes". For testing I am innerHtmling Done/Not Done. The logic seems to work , but I am afraid the code is testing the list ...
2
votes
2answers
45 views

Allow Sharepoint REST API app access to a singular list and nothing else

By default the permissions of a sharepoint app seem limited to read/write/full control over the entire site. I'm looking for a way to grant a supplier access to a list but do not want them to be able ...
1
vote
1answer
98 views

2016 - Upload multiple files with REST API and PNP [closed]

I'm developing a multiple files upload form on SharePoint 2016. My goal is to prevent duplicate files name, so my idea is to upload files in a document library, change a metadata of these files and ...
1
vote
0answers
42 views

503 Service unavailable while uploading file on SharePoint online of size more than 249 MB

I am trying to upload the file on SharePoint online larger than 250MB using rest API. I have divided data of the file in small chunks say 100MB and used Start upload, continue Upload and Finish Upload ...
1
vote
1answer
81 views

Sharepoint Online Rest API - VBA - 401 unauthorized - SPOIDCRL token

I'm trying to use the rest api to get info about a doc library but keep getting 401 unauthorized - the code below worked for a bit for me but not other users now it doesn't work for me either... I ...
0
votes
1answer
25 views

I am getting 401 unauthorised exception while downloading the file in byte array

Code I am using: using (WebClient client = new WebClient()) { client.Headers.Add(HttpRequestHeader.ContentType, "application/json;odata=verbose"); client.Headers.Add(HttpRequestHeader.Accept,...
0
votes
1answer
29 views

pnpjs sp with vue and vuetify datatable

If my name columns in sharepoint are empty, no data comes in with my get requests. Using Vue with Vuetify tables. get this.$pnp.sp.web.lists.getByTitle("3dmodelassigndev").items // Development ....
0
votes
1answer
63 views

I want to do full CURD operation in JQuery Datatable for SharePoint List item

I want to have Add, Edit, Delete options of Jquery datatable for my SharePoint list item. Have anyone implemented this. I know how to show data in datatable using SharePoint REST, But facing ...
0
votes
1answer
31 views

SharePoint REST orderby on expanded field

I would like to do an orderby on an expanded field when querying a SharePoint list. so for example: $select=File/Name&$expand=File&$orderby=File/Name However, including the orderby on the ...
2
votes
1answer
37 views

SharePoint List Item Update - Concurrency Using REST API

I'm using REST API for updating the SharePoint list item (Counter). In my code on form load I'm fetching the count from list and increment to 1 & on submit button click I'm updating the value of ...
0
votes
1answer
22 views

Help with creating files using REST API - SharePoint 2013

_spPageContextInfo.webAbsoluteUrl + "_api/web/getfolderbyserverrelativeurl('/s/KM/box/pg/testRestDocs')/Files/add(url='" + docTitle + "',overwrite=true)"; $(function () { bindButtonClick(); }); ...
0
votes
1answer
10 views

cancelling the metadata form when uploading a document

i have a validation column in my metadata form on a document library. If the user presses the 'X' button to cancel the document becomes checked out and nobody can see the document - thats by design. ...
0
votes
1answer
31 views

Return all Workflows in a Site Collection using REST API

Using REST API, how do you list all the Workflows in a SharePoint 2013 Site Collection?
0
votes
0answers
18 views

Sharepoint Online REST API - what are moveAway and Navigation changes?

I'm studying the REST API _api/web/lists(guid'')/getChanges API, but I don't understand some of the change types and/or when do they occur. noChange: under what circumstances is this returned by the ...
0
votes
0answers
26 views

Online - Create anonymous link with password protection via REST API

I've seen that is possible to create an anonymous link to access items in a document library using the "Share" button available in Modern UI. I've noticed that is now possible to create password ...
0
votes
0answers
44 views

Online - Create share link to external user with REST API or Powershell

I'm trying to create share links with REST API or a PowerShell script. This is my scenario: I've a document library in my team site with many folders, each folder refer to an agent. Each agent has an ...
1
vote
2answers
45 views

The remote server returned an error: (500) Internal Server Error for SharePoint 2019

I am using an ASP.Net app to connect to SharePoint 2019 using CSOM library. What i discovered is that every morning when i run my app i get the above error and when i switch to the SharePoint server ...
0
votes
1answer
78 views

How to edit Web Part properties in REST or CSOM?

This is a follow-up to my earlier question, How to get all properties of a Site Page using REST API?. Using REST in an AngularJS application, I was able to read the properties of the Web Part Page ...
0
votes
0answers
14 views

SharePoint 2013 create text file in a library via REST

I am trying to create a text file in alibrary named "testRestDocs" The dev tool console the following error message: _spPageContextInfo.webAbsoluteUrl + "_api/web/getfolderbyserverrelativeurl('/s/...
0
votes
1answer
15 views

Get a document modifiedBy in JAVA with RestApi

As you can see in images, I have some folder in my document library. I wanna reach the files in the folder and take the "modifiedby" column and change it with java-rest api. I can reach the file ...
0
votes
2answers
36 views

Sharepoint API authentication without OAuth

I'm trying to make an integration work between JIRA and Sharepoint to populate values in a custom field in JIRA from querying the Sharepoint API, but the JIRA Addon I'm using to does not support ...
0
votes
1answer
33 views

403: Forbidden when trying to update item properties with SharePoint API

In my .NET Core API I'm trying to update a document library item property with the SharePoint API. I already succeeded to get the document library item by id and by filter. When I try to update an ...
3
votes
1answer
41 views

Restrict the run of workflow

I have field that has attachment. And i have a workflow which triggers when item created or modified. How can i restrict the running of workflow when an attachment is added