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
6 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
35 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 ...
0
votes
1answer
26 views

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

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
29 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
0answers
15 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
0answers
14 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
19 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
38 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
22 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
29 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
14 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
17 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
15 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
17 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
19 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
20 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
24 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
13 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
12 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
28 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
19 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
39 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
0
votes
1answer
17 views

Bypass password in sharepoint for external service

I have a external webservice that uses service account to login into sharepoint to access sharepoint apis. The problem we had is that the password would expire every 3 month. We want to seek out a ...
1
vote
2answers
29 views

Get the data from Multi line Text field and set it to text area line by line

I have a multi line rich text field and I want to get the data from column and set in text area line by line. I tried Splitting but I need another solution if possible.
0
votes
0answers
16 views

Query project server custom fields values when MSP_EpmProject_UserView is missing

Recently, I’d wanted to query one of my custom fields values from project server 2016 database but I couldn’t find MSP_EpmProject_UserView in my content database views!! After a few searches, I found ...
0
votes
1answer
22 views

The query to field 'list/ChoiceField' is not valid."

I have a lookup list that contains a choice field. I'm trying to retrieve it's values using rest Expand= "list" Select= "list/ChoiceField" I get The query to field 'list/ChoiceField' is not ...
0
votes
1answer
23 views

Problem with User ID in different UserInformationList queries

I have got a custom SharePoint site setup, using JavaScript REST queries, and need to write a user into a "To" field of a custom list (setup as a Person field). The site is at <domain>/sites/...
0
votes
2answers
37 views

SharePoint rest api not bringing items from List

I tried to use Rest API to get list items in Office 365, the list has 3 items in total. When I visit the below URL: http://sitename/_api/web/lists/getbytitle('List Name')/ It shows list ...
0
votes
2answers
78 views

REST API - Retrieve Group Members

We are using SharePoint Online. I am planning to add a flow to send out an email notification whenever a new page is added to the site. To do that, I need the list of members of that site cause I ...
0
votes
1answer
44 views

Read content of a file and display the result

My scenario: I am using SharePoint 2019, I am using the code below to search for a particular word in all the files found on the site. Once the files with the word that is queried is found, I want ...
1
vote
0answers
22 views

Difference between List.ContentTypesEnabled & List.AllowContentTypes

I would like to enable content types on lists with REST. Microsoft says this about these properties: List.AllowContentTypes: Gets a value that specifies whether the list supports content types. ...
0
votes
2answers
30 views

How to authenticate to use SharePoint rest api

I am using the code below and am getting unauthorized access. Can you guys show me what i am missing here.I am using SharePoint 2019. string URL = "http://sharepoint/sites/test/_api/search/query?...
0
votes
1answer
38 views

Search REST API - An unknown error occurred

Wondering if you could help me please, I am currently calling the SharePoint rest search api with a number of parameters as below: GET: https://tenant.sharepoint.com/sites/sitecol/_api/search/query? ...
0
votes
2answers
36 views

How to create a folder and a folder inside a folder using REST/JSOM/Flow in a Custom List (Not a library)?

The requirement is: When an item is created in a custom list, a folder should be created with the same name as Title of the item and the item should be placed inside the folder.
0
votes
1answer
21 views

PWA Workflow gets Access Denied for API Call to get Assignments

I have a SPD 2013 Workflow on our PWA site that has been working fine for 6 months. My colleague has left the business and Admin have disabled his 365 account. Suddenly, the Workflow is failing and ...
1
vote
0answers
27 views

Can't update custom file attributes of 4% of files in document library

We use SharePoint Online. Created document library, synced to a local folder for initial file upload. Uploaded ~20k files. Created 3 custom fields (2 single value taxonomy, 1 multi value taxonomy). We ...
0
votes
1answer
9 views

How to fix ajax call to get user id returns undefined if same url works directly in browser?

I have an array with a few user email addresses in it, trying to iterate through the array and get Ids. Console log is telling me xuser is undefined. When I manually enter the url below into the ...
0
votes
0answers
7 views

Can I get a SharePoint List URL with a single rest API call with parameters: Site Colleciton URL, Web Guid and List Guid?

Currently I am using 2 calls: The first gets the WebURL `${SCURL}/_api/web/webinfos?$filter=ID eq guid'${WebGuid}'` and the seconds return the rootFolder from which I can get the List Url: `${...
0
votes
0answers
7 views

View count for documents across all document libraries with timeframe

I am trying to get view counts across document libraries for all the documents (pdf/docs/docx/pttx/xslx/etc) not the web pages. What I am trying to do is getting the count for the total documents in ...
0
votes
0answers
13 views

Move SharePoint Online 'Custom List' item to a folder in the same list using MS Flow

I have a requirement where a SharePoint list item should be moved to a folder created on fly with the same name as the item title. I have found many posts with the library but here I want is for ...
0
votes
1answer
15 views

How to include Path in SharePoint Search API url

I am developing functionality where I will be calling REST Search API's for SharePoint using React. How can we pass (path:https://contoso.sharepoint.com/sites/test/Lists/Employee) to /sites/OneVSS/...
0
votes
1answer
32 views

Is it possible create list item in multiple list using SharePoint REST API

I have one requirement where I have to create a list item in List A and B. I have to use single Rest Call to create the list item. Is it possible to create the list item using the single REST API ...
0
votes
2answers
162 views

Sharepoint online rest api is returning xml instead of json

I have the following code this.context.spHttpClient.get( `${this.absoluteUrl}/?$select=Title&`, this.config, { headers:this.getHeaders, }) .then((response: ...
1
vote
0answers
38 views

Rest API delete (not working) for large set of Items in a single list in SharePoint Online(>4000 Items)

My scenario is, I have a list called Historic List, where I was trying to delete items(>4000) using Rest API (I was using Batching Size of 100) for deletion for every 2 batches I had set up timeout of ...
0
votes
1answer
84 views

Sharepoint Online REST API: list view threshold exceeded when querying items in subfolder with GetItems

I need to query items in a given folder and all of its children in a document library with as few APIs as possible. The ideal solution seemed to be getItems with Scope='RecursiveAll' and a ...
0
votes
1answer
34 views

Log out SharePoint 2013 API

I am working on SharePoint API, and i have a login method which looks like that : public void login(String configFileName) { CredentialsProvider credsProvider = new BasicCredentialsProvider(...
0
votes
0answers
25 views

Workflow - copy document as a new version

I'm trying to copy a document from one library to another (within one site) with a 2013 SPD workflow. Both libraries have versioning enabled (no content approval). The target library already has a ...
0
votes
1answer
114 views

Create list alert using REST

I want to create a list alert using the rest endpoint _api/web/alerts/add. For this I build a JSON-string representing an AlertCreationInformation-object. I tested this AlertCreationInformation-...
0
votes
0answers
24 views

Get a specific version of a file/document SP 2013

I am currently working on a SP project using JAVA and Rest calls, I have to get a specific version of a file. For example, my file is named Document and is 4.2 version. On the site, I can see the ...