Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint

0
votes
1answer
18 views

How to get all properties of a Site Page using REST API?

I am writing an application in AngularJS for a SharePoint 2013 site collection, using the REST API to talk to SharePoint. My task is to update the Image Link in the Title Bar Properties of every Web ...
0
votes
2answers
16 views

What will be the rest api query to get field values from site content type using rest api?

How will I fetch choice field values from site content type directly> This is what I have tried: http://<sitecollection>/<site>/_api/web/contenttypes
0
votes
0answers
17 views

SharePoint REST API get values of checkboxes, Get/Post

Using SharePoint REST API, have a Bootstrap/HTML form that has about 20 questions, each with it's own group of checkboxes, and I'm trying to both Get and Post the values from the "checked" boxes. I ...
0
votes
1answer
16 views

REST API or CSOM JS GetList return URL

I need to get url list, Title is ready, Title is not equals url. var clientContext = SP.ClientContext.get_current(); var website = clientContext.get_web(); var list = website.get_lists().getByTitle("...
0
votes
0answers
31 views

Looking for rest parameter for copy/create document with content for post method

We are trying to copy document from SharePoint Online document library to documentum(DCTM) repository using REST API (MS-Flow). Right now we are able to create document to documentum(DCTM) with ...
0
votes
2answers
31 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
1answer
26 views

Bulk item Insert/update in SharePoint list using JavaScript

I want to add items in bulk (around 13000 entries) into the SharePoint list using the JavaScript. For this I have already user CSOM Client Context Batch insert code and also I tried the SP.Services() ...
0
votes
2answers
50 views

SharePoint Online list items 5000 +, rest query

I have few lists and libraries which may reach the threshold value of 5000 soon? I have several dashboards which I've used Rest queries to fetch data according to the status of the items. My question ...
0
votes
1answer
39 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
18 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
1answer
21 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
1answer
20 views

What is correct syntax to update SP multiperson column with array or string variable via rest api?

Can't get the syntax right to update a SharePoint multiperson column. some variables: iArray // = array of multiple user ids sArray = iArray.join(); // string of multiple user ids json1 = "{'results'...
1
vote
2answers
29 views

SharePoint Online User Profile updating

Is there a REST API for updating User Profiles? I've found the one to read them, but can't seem to work out how to update them. User Profile Properties With REST API–SharePoint Office 365. Thanks.
0
votes
2answers
27 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
2answers
30 views

Lookup Column Value through Rest API

i have a small requirement, where in i am pulling in a lot of data from List A to List B through Rest API. but i am stuck at one place where in i am not able to pull in lookup value in List B. Hope ...
1
vote
0answers
24 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
24 views

SharePoint 2013 Designer workflow - Second identical REST call returns XML and thus errors out. Why is this?

I have a workflow defined on the Workflow Tasks list and I have a simple REST call to that same list and then I repeat the exact same REST call to that list and the first one works like a charm, the ...
0
votes
1answer
33 views

How do I create a REST call in SharePoint 2013 Designer to delete records from the Workflow History List?

I use the Workflow History List for debugging and the option of turning on debugging for flows that are in production. I would however like a workflow that purges the records in this list based by ...
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: `${...
1
vote
1answer
17 views

CAML QUERY does not work in IE11 when searching by content type

I've this code below: function BuscarDocumentosHoje(Departamento,NivelAutorizacao,NumeroColaborador,todayfinal){ var restUrl = "https://tenant.sharepoint.com/sites/site/Negocio/Precario/_api/web/...
2
votes
0answers
21 views

Get document library size (REST API)

Does anybody know if there's any property on the document libraries that tells me the size of it? Or how many of the items that's folders and how many thats's files. I know I can query each library ...
0
votes
1answer
22 views

How can I use REST API to update an existing file in a file library whilst retaining the Created date

I have a SP Designer 2013 workflow which copies a file from FileLibrary1 to FileLibrary2. I did this via the following REST API call: https://sharepointSite/sites/rootSite/_api/web/folders/GetByUrl('...
0
votes
2answers
33 views

REST filter by Created By (Author)

In SharePoint Online, is it possible to filter a survey list by Created By? I've found several posts with similar question but none of the suggested solutions work (i.e. expand=Author or expand=Author/...
0
votes
2answers
21 views

Uploading files to SharePoint Library and referencing excel file to fill in column values

I am brand spanking new to SharePoint. I have been tasked with developing a SharePoint site that will facilitate finding documents, and better organize them than they currently are on our network ...
0
votes
2answers
28 views

Error {“readyState”:4,“status”:404, “statusText”:“not found”} in SP Online Delete ListItem

I am not able to delete the list item using the getitembyid(ID) method using SP Online REST call. I am making a call to deleteitem(murl) where murl ===> for (var i = 0; i < data.d.results....
0
votes
1answer
14 views

SharePoint Rest API Patch request to update list item not working

I have an application build up in SharePoint 2013. In one of the custom list form, we are trying to update list item using Rest API call with type Patch. Few users are getting a response {"...
0
votes
0answers
36 views

Q: Get item URL from a lookup field using pnp/sp javascript library

Set up: Something that may be relevant is that the Sharepoint is in spanish. The script accesses a list to know if the current user has read the mandatory information. This list has a reader field and ...
0
votes
1answer
9 views

How to create a word.docx file after getting document from Sharepoint API?

SP2016 On Prem: Utltimate Goal: Pull files from Sharepoint Document libraries and place onto file server. I'm using this Sharepoint api to read the data from the file: http://siteurl/_api/web/...
0
votes
1answer
11 views

Redirect the page to users from another country/ Region using Rest API

we require to redirect the users of other country/region for one of the pages in sharepoint online site. how can we check we the logged in user belong to specific country/region? what would be the ...
0
votes
1answer
25 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
0answers
12 views

I am trying to update one field of a document, which is in a folder. I am using REST API and C# for achieving this. But I am getting 403: Forbidden

var passWord = new SecureString(); foreach (var c in pwd) passWord.AppendChar(c); SharePointOnlineCredentials credential = new SharePointOnlineCredentials(loginName, passWord); ...
0
votes
1answer
25 views

Get item from external list field with ajax - SP2013

I have a list and some columns retrieve value from external list. How to get all items from that list(attached img) with REST I'm trying like this function traerSolicitudes() { var lista = "...
0
votes
2answers
80 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: ...
0
votes
1answer
25 views

Sharepoint Designer Workflow - call http web service fails - Chinese File name

I have created a SharePoint Designer site Workflow. In this workflow, there is an action "call Http web service" to copy files from one location to another. It fails for all the files that has ...
0
votes
0answers
16 views

Refinement filter in SP-online search query

I have a string attribute WorkPhone in SP user profiles which has format like this: "+123 45-633-2153" I made a query which search by phone extension (user inputs last 4 digits and it returns user ...
0
votes
0answers
18 views

get different time zone from list using RESTAPI

am using UTC+1 for time zone. When I get the item using REST API I get the created value as UTC-2! and even at the list is ok, the problem is only for REST call, $.ajax({ url: siteurl + "/...
0
votes
0answers
28 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
0answers
7 views

Getting the size of a list item attachment using _api without downloading the whole file

I am using the bearer token for authentication, therefore I need to download list item attachments like this: https://tenantname.sharepoint.com/_api/web/lists/getbytitle('...
-1
votes
1answer
57 views

SharePoint REST API

In list A I have column test I'd and Testdepartment. Testdepartment is a look column to ListA Testdepartment is present in ListB Values in the column are as below: Test ID Test department 1 ...
0
votes
1answer
17 views

Assigning Task to Group using REST and SharePoint JavaScript API

I found myself in an unfortunate position of being unable to use SharePoint Designer to build workflows and thus am having to rebuild an approval workflow in JavaScript. I am using REST to insert a ...
0
votes
1answer
100 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
2answers
54 views

SharePoint REST API - HTTP/1.1 500 Internal Server Error - Configuration

I am connecting to SharePoint to query lists, all was well but now I get a HTTP/1.1 500 Internal Server Error for the same request which was ok and tested. I guess the problem is from a configuration. ...
0
votes
1answer
50 views

How to use SharePoint REST API to get newest list item?

I am trying to get the newest item added to a list. Get item by ID works for single item: $.ajax({ url: xurl + "/_api/web/lists('" + xlist + "')/items/getById(123)", type: "GET", headers: { "Accept"...
0
votes
0answers
25 views

Getting Sharepoint site users: e-mails and role

I would like to get a list of users/groups that have access to a Sharepoint site. In addition to the list of users and respective e-mails, I'd like to know what level of access the user has to the ...
3
votes
2answers
38 views

SharePoint Online getFileByServerRelativeUrl with Editor not working

I am trying to get the 'Editor/Name' using REST however this does not appear to be working. My current REST url is formed as follows: https://tenant.sharepoint.com/sites/sitecollection/_api/web/...
0
votes
0answers
10 views

API items endpoint filter for <d:Url> field

We are trying to use the API in order to look @ the element below and search for anything in this particular library that starts with http://. This is the link you get when using the Document ID or "...
0
votes
2answers
193 views

SharePoint POST REST API returning error code 400

I'm attempting to create an item in SharePoint on premise 2016 list using Java and SharePoint API. Forgive me if I missed it - I see a few related questions but they do not seem to really answer my ...
1
vote
0answers
20 views

List update and file upload using REST API failed with a SPListDataValidationException

I use the REST API to create list item, upload file linked to this item and update the item. For some list everything works fine and I can realize all these operations but for some other lists on the ...
0
votes
2answers
39 views

How to SP2013 list put it into DataTable dynamically?

I have a sharepoint 2013 list with some items, I need to put it into DataTable dynamically, is possible create the html table automatically?
1
vote
1answer
19 views

List all files and their path for 500+ subsites?

I have a collection in our SPO setup which contains 500+ subsites. Each subsite contains between 10 and 20 libraries. I have been tasked to get data on which folders in which library is empty. I've ...