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 [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.

0
votes
0answers
5 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
0answers
6 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
19 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
8 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
12 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
11 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
20 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
44 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
0answers
20 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
54 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
25 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
20 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
74 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
18 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 ...
0
votes
3answers
44 views

Best way to update item perms for multiple users with SP REST API?

Using SharePoint REST API I can add and remove user permissions for a list item. If I need to add permissions for multiple users to a specific item, is there a way to do this other than looping the ...
0
votes
2answers
44 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
2answers
27 views

REST API filter/select

I have a list in SP 2013 with 4 Columns Date Created -- Country -- Price in US Dollars -- Modified After a bunch of help from the community I have created a Rest API for this list, but now i'm ...
0
votes
1answer
14 views

Successful API build, but now what [closed]

So I am pretty much self taught on SharePoint and have just recently built a Rest API off one of my lists. Now say I wanted to ingest that API into a program like power BI? is that possible? I guess ...
3
votes
2answers
28 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
2answers
32 views

SharePoint Custom Webpage/Part Not Consistently Loading

I hope this is the right place I have been in a role within my organization working with SharePoint for a couple of months now, so i'm a newb more or less. I have some experience (again a novice) ...
0
votes
0answers
18 views

Loading _Sys_Nav_HoverText with REST

I'm building a SharePoint 2016 app with a custom site map menu that utilizes the site's managed navigation. How do I retrieve the "Navigation Hover Text" value? I'm using the REST API to retrieve the ...
0
votes
2answers
21 views

SharePoint 2013 Rest API (targeting specific columns)

Very new to SharePoint Rest API's, I got the rest to work filtering the first Column but now I am running into issues with showing the multiple columns for example. I am trying to filter out the ...
0
votes
0answers
30 views

Correctly getting a Wiki Page's content with REST API

According to a reply in this post, I can get a Wiki page's content by extracting the WikiField field from the response of GET https://<site-url>/_api/Lists(guid'<list-id>')/Items(<item-...
0
votes
0answers
15 views

Fetching employee details from master list based on employee name selection

i have a small requirement which can be fulfilled by REST but i am not that good in REST. so i have List A (Master List) and List B (Vacation Form). List A contains Employee name , Managers Name , ...
0
votes
2answers
43 views

Access all files in different folders using REST API

I have four folders, is it possible to access them and get all the files? I already tried this: jQuery.ajax({ url: "https://test.sharepoint.com/sites/test/Negocio/Precario/_api/Web/...
0
votes
0answers
33 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
0
votes
0answers
10 views

How to save to a richtext column using TinyMCE

I'm trying to make a custom form using js and TinyMCE, and the problem I have is that all of the rich text is saved, except the images, when I check the list, the html is saved like this <img alt=...
0
votes
1answer
39 views

Can I use elevated permissions using JSOM, CSOM, or REST?

I am working with an On-Premise SharePoint 2016 farm and I am looking for some way to elevate permissions, so I don't use the logged-in user's credentials but another set of permissions that the ...
0
votes
1answer
55 views

403 FORBIDDEN error while trying to insert an item in a SharePoint list

Hi I am trying to insert a list item in a SharePoint list by using REST api. I am getting an error as: { "readyState": 4, "responseText": "{\"error\":{\"code\":\"-2130575251, Microsoft....
0
votes
2answers
38 views

Get value from Column and cut the duplicates using SharePoint Rest API

I've multiple folders inside the pages library Within each folder I have pages Grupo de produtos is of type taxonomy. I run the function GetPagesProd and for each item I get the value from Grupo de ...
0
votes
1answer
21 views

Getting link from lookup document library

I have created a Lookup field linked to the document library which allows multiple files. I am able to get the Title of the linked documents, but I can't find a way to get the url? How can this be ...
0
votes
0answers
22 views

Replacing the SSIS Sharepoint List Source

Hi I've been trying at this now for a day or so but it's proving really difficult. I've got a basic SSIS package which essentially queries some sharepoint lists (lists with files) and drags out the ...
0
votes
1answer
22 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
0
votes
1answer
88 views

Authentication to SharePoint using secure authentication and CSOM in a .NET application

I'm using CSOM for making REST API calls to a SharePoint list from a C# application. This needs credentials (of course), however I've found that it needs a username and a password in plain text. ...
1
vote
1answer
32 views

PnPjs alternatives for .NET

For developing with the SharePoint REST APIs using JavaScript I always use PnPjs because it's an easy way of getting data from SP. PnPjs is a collection of fluent libraries for consuming SharePoint,...
0
votes
0answers
24 views

Sharepoint Multilookup Empty Field

I'm facing an issue with a multi lookup field while doing a REST API call using pnp-js. So I have this list (let's call it A) that looks up into another list (let's call it B) using a lookup field (...
0
votes
0answers
14 views

Unmodifiable list properties for specific list templates (ex: EnableVersioning for survey lists)

Although the REST API documents says that EnableVersioning is readable and writable, I was unable to set a survey list's EnableVersioning by POSTing or PATCHing it, and according to this stackoverflow ...
0
votes
2answers
49 views

Get folders from list using SharePoint Rest API

I allowed the creation of folders in the list, and the content type "DinamicoFolder" is of type folder. I have multiple folders inside the folder "Contas à Ordem" URL: https://test.sharepoint.com/...
0
votes
0answers
24 views

Date shifted one day when creating all day event with the REST API

When creating an all day event by POSTing a new item: { "odata.type": "<odata-type>", "FileSystemObjectType": 0, "Title": "alldayevent", "EventDate": "2019-02-25T00:00:00Z", ...
0
votes
0answers
22 views

Get user properties of external / guest user in sharepoint online using REST

is there any way to get user properties of external / guest user in SharePoint online with REST? I am using the _api/SP.UserProfiles.PeopleManager/GetMyProperties endpoint to retrieve the user ...
0
votes
1answer
15 views

Sort by RefinableInt using SharePoint Rest API

I've this code below: https://test.sharepoint.com/sites/test/Negocio/OfertaParticulares/_api/web/folders('Dinamico')/folders('55')/folders('Contas%20%C3%A0%20Ordem')/folders?$select=ID,Title,Created,...
0
votes
0answers
17 views

Create a folder with custom content type

I manage to create a folder with in sharepoint online using REST API but the problem is I need to use a custom content type for the folder. I saw this article How to create folder with custom Content ...
0
votes
1answer
19 views

Rest API Documentation - getChanges query options

Where can I find all available query options for getChanges? /_api/site/getchanges(@qry)?@qry={} I know I can query using {"Add":true,"Web":true} but I'd like to know all properties I can specify.
0
votes
1answer
30 views

Accessing Terms in Folder using SharePoint Rest API

I created a content type of type folder and I added two taxonomy fields, as you can see. I'm trying to access the fields Tag and Grupo de produtos, I already tried this code below: https://test....
0
votes
1answer
21 views

Unable to update InformationRightsManagementSettings using REST

The following request returns Status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The ...
0
votes
2answers
72 views

Sharepoint Server 2013 REST API returns 401 by calling 'FieldValuesAsHtml' in anonymous access

I've followed the steps from the following answer: sharepoint 2013 anonymous 401 UNAUTHORIZED1 However, it works partially for me. The REST calls works when I try to access basic information from any ...
0
votes
2answers
56 views

Export SharePoint online list to Excel

I know there is an OOTB functionality to export list into .iqy file that can be opened in Excel. But here we want to export the list using JSOM/REST to a file which has .xls format. I have gone ...
0
votes
1answer
138 views

Updating a list item via Invoke-RestMethod

I am at my wits end with this one. I am unable to modify an list item remotely via a REST request. Can anyone see what I am doing wrong here? I am getting at 403 Forbidden response from SharePoint ...