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
13 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 ...
1
vote
1answer
621 views

Unable to retrieve RoleAssignments through Sharepoint Online REST API

I am having a problem with retrieving RoleAssignments (for any object, web, list, folder etc.) I have attempted to get it through: 1. https://[my_company].sharepoint.com/_api/Web/RoleAssignments 2. ...
4
votes
1answer
2k views

Querying multiple lines of text column via REST API

I am trying to query a simple multiple lines of text column on a custom list in SharePoint 2013 on-prem. Whenever I include the text column in the $select fields I get an error that the field is not ...
0
votes
1answer
27 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
643 views

Sharepoint Online REST api CAML query not returning file related columns

I'm trying to query a document list from a SharePoint Online server using REST API. I have to use CAML, otherwise filtering is not possible on the taxonomy field as far as I know. Below is the ...
1
vote
1answer
624 views

REST analog of SP.Utilities.Utility.formatDateTime

I would be very glad if someone help me, I am trying to find REST analog of SP.Utilities.Utility.formatDateTime function: var context = new SP.ClientContext.get_current(); var web = context.get_web()...
1
vote
1answer
651 views

REST API Throttle Limit Error

I have an application I built in SharePoint Online which uses REST API queries to pull records out of a SharePoint list which has 400k records. The list has an indexed column and for the most part ...
1
vote
2answers
3k views

The property 'Description' does not exist on type

I am trying to save a list item via REST and sending following piece to SharePoint API: var updatedTaskInformations = { "__metadata": { "type": "SP.Data....
0
votes
1answer
2k views

Change user permissions of item with REST api

There is a list in which every item has unique permissions. I used this very helpful topic, where it is described how to break inheritance and create unique permissions and after that to add ...
1
vote
1answer
776 views

Filtering a Search Query REST

I am trying to use REST to return items from a list, the search query needs to be filtered by Managed Properties, by Path and by type to ensure only List Items are returned. The Managed Property ...
0
votes
3answers
657 views

SharePoint 2013 get full file name including extension

Wondering if anyone can help me please, I have a media library with a number of videos in and I want to get the full file name including the extension out of the library, I have so far tried using ...
16
votes
7answers
75k views

REST with $filter for List Items in Sharepoint 2013

Sharepoint 2013, REST API, native C++ application: I want to get all Folder items from the list. Try /_api/Web/Lists(guid'GUID')/Items?$filter=FileSystemObjectType+eq+1 and get HTTP 400 Bed request. ...
1
vote
1answer
26 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,...
1
vote
1answer
639 views

How to display the AssignedTo field from a REST query?

I am trying to display the Assigned To field in a table I am making with REST in SharePoint but all that is getting returned is [object Object]. When I type this url into my website I can see the ...
6
votes
2answers
11k views

How can I get the URL of a Pages List with REST API?

My question is very simple. I would like to display the recent top 10 news with the REST API in Sharepoint 2013. I'm using the following query: http://my-server/my-news/_api/web/lists/GetByTitle('...
0
votes
1answer
706 views

Adding blog post item category with REST API Sharepoint 2013

I want to insert a billet item list with related category ID in REST API Sharepoint. I proceeded as follows: POST /_api/lists/getbytitle('Billets')/items { "__metadata": { "type": "SP.Data....
0
votes
0answers
14 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
3answers
791 views

People search query shows invalid refinementfilters

I want to get all the peoples whose PreferredName contains "Tar". I have written a search query for this search /_api/search/query?querytext='*'&selectproperties='PreferredName,OriginalPath,...
0
votes
1answer
162 views

Send Email when Sharing file/Folder

Is it possible to send an email when sharing a file or folder through the REST API. Below is the screen I am referring to, I can share the file/folder. But would also like the option to send an email ...
0
votes
1answer
644 views

Can I Update List Item Using My Particular Field Value Insted of ID Using Rest

I am trying to update share point list item using rest api. I can update Item using ID but I want to Update that item which column Name Title is like "DA5000" its unique field so can I do this ?? if ...
1
vote
1answer
1k views

Cannot get value for projected field

We are calling expand on a people picker column of a custom list but get the following error due to a particular SharePoint user having a null value for EMail. Cannot get value for projected field ...
0
votes
1answer
683 views

REST addViewField “Cannot handle the data at position 0.”

I'm currently writing an initialisation script for a SharePoint-hosted application which checks if a list (used for launcher items) exists. If it doesn't, then it runs through a series of processes to ...
1
vote
2answers
664 views

REST endpoint working in SharePoint online and not in on premise

/_api/web/lists/getbytitle('List')/items?$select=Id,AttachmentFiles&$expand=AttachmentFiles The above REST endpoint works in SharePoint online and we are able to fetch attachments but the same ...
1
vote
0answers
71 views

Accessing Groups Created in Office 365 in SharePoint

I've created a Group in the Office 365 admin area and added a couple of users. However I can't seem to find it through the API. When you go to share a file and use the search function it appears in ...
0
votes
0answers
7 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 ...
1
vote
1answer
676 views

Sharepoint 2013 Query Filter Using POST

I'm trying to use SharePoint 2013 REST api to query using POST method. I have found few solutions to query SPListItems using CAML but i cannot find a solution to use Linq like queries. I'm trying in ...
0
votes
1answer
703 views

Get SharePoint data in Cross Domain using REST-API

We have (02) SharePoint farm in different domain and they are connected. We need to access data from Farm-A SharePoint List in Farm-B using Rest-API usually we calling REST API by just URL as below ...
0
votes
2answers
31 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/...
1
vote
1answer
681 views

RefinementResults not showing using Search 2013 API with anonymous connection

First of all, I do get results even with selectproperties but RefinementResults give me a null value. Does anyone have a solution for it? Url used is: querytext=%27AIVD%27&selectproperties=%...
0
votes
0answers
22 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
3answers
1k views

Null Lookup column getting from REST API with Expand it give no key for expanded column

I am using REST API to for getting data from SharePoint. I have one list like category with three column Title and two lookup name like childcategory, parentcategory. I have some data in which there ...
5
votes
1answer
248 views

SPOnline, How to Batch RELATED REST calls (and increase performance)

Doing nothing fancy, just your normal Intranet Front-Page Got two WebComponents that display a News Carousel and Summary List <news extract="newsheadlines" display="carousel"> <news ...
4
votes
2answers
9k views

ReferenceError: SPClientTemplates is not defined

I am trying to use the client-side People Picker and I can't get it to initialize the people picker due to SPClientTemplates not being defined. I am following MS documentation line by line but cannot ...
1
vote
1answer
45 views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
0
votes
0answers
20 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 ...
2
votes
3answers
3k views

Update attachment of list item using rest api is failing

I am trying to update attachment of list item using REST API. I am getting the below error: {"error":{"code":"-2130575257, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The ...
1
vote
1answer
679 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working and gives error, 404 not found. function getListData(...
0
votes
1answer
10 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,...
2
votes
1answer
800 views

Access Denied while accessing SharePoint Custom List Using Rest APIs via POSTMAN

From couple of days, I am trying to access Custom made SharePoint Online (Office 365) List for CRUD Operation with the help of Rest APIs Endpoints using Postman, but all the time I am getting "Access ...
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 ...
1
vote
1answer
716 views

Use REST odata webservice to update a task's custom field in Project server

I've figured out how to update a Task's basic fields via the OData Rest service using POST (X-HTTP-Method=MERGE): /ProjectServer/Projects('{#project}')/Draft/Tasks('{#Id}') The post content is a ...
1
vote
1answer
703 views

Pre Filling SharePoint Field using Javascript

I am using REST API to create a list item in another list. Based on the successful creation of the list item I am just updating the current SharePoint field value. This whole process is executing ...
0
votes
2answers
32 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
1answer
12 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.
3
votes
1answer
781 views

Approve folder in document library from Rest API (SharePoint Foundation 2013)

I am able to approve files easily enough with the url var url = SPAppWebUrl + "/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('" + filePath + "')/Approve(comment='AutoApprove - " + ...
0
votes
1answer
23 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
48 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 ...
0
votes
1answer
846 views

How to get all the files from specific sharepoint folders and subfolders using CSOM

We have a site which has few document libraries and each library has n number or folders and sub folders. I want to get all the files only from the folders or sub folders which name is ABC and XYZ ...
0
votes
1answer
17 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
1answer
37 views

Provide user a filtered set of managed metadata column values for filtering on a list view

Background/Problem Our customer recently switched from a choice column to using a managed metadata field to capture data in a list. They really love the ability to add new values on the fly, as well ...