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.

learn more… | top users | synonyms (1)

0
votes
0answers
30 views

SharePoint Search REST API returns invalid XML

I've ran into an issue where passing certain keywords to SharePoint Search REST API returns invalid XML. Here is an error message from Chrome: This page contains the following errors: error on line 3 ...
0
votes
0answers
20 views

Caching SharePoint API Queries at the Server?

Let's just say I have to call this REST service via JavaScript: http://someserver/_api/lists(guid'aguid')/items?$select=ID,Title&$top=5000 Knowing there's a lot of records to be returned, let's ...
4
votes
1answer
127 views

Retrieve userprofiles by REST API

I'm trying to retrieve user people with rest api. But it does not work. var getSpecificUserProperty = ...
0
votes
0answers
29 views

SharePoint 2013 $batch issue with parent and child sites

I've played around with $batch for a while, overall it's a great addition, but there are some minor things I am curious about. $batch allows you to request data from the host web (from the app ...
0
votes
2answers
71 views

Updating field in sharepoint list using rest api while adding a new item

When a new item is added to list, it has one column which I need to update using Rest API. how can we do this at the time of adding new item?
0
votes
0answers
7 views

How to crawl the content type of custom list and page

I want to get all the items using the search api functionality .i have tried with following search url using REST API ...
1
vote
1answer
164 views

Set list item level permission in jsom (javascript object model)

I need to assign permissions to a particular list item using client object model in JavaScript.Say for 5th item by id I want to assign contribute permission to a particular group. I have previously ...
2
votes
0answers
26 views

Update metadata w/2013 REST API in a Workflow

I am looking for an example of a REST PUT/MERGE method done from a workflow (no code) in SharePoint Designer to update a metadata field in a library. Specifically what the Build Dictionary and Call ...
2
votes
0answers
47 views

HitHighlightedSummary HitHighlightedProperties is empty in people search using REST

Is there a way to get search hits in HitHighlightedSummary HitHighlightedProperties on people search using REST? ...
0
votes
2answers
71 views

REST expand query option for Folder is not working with GetItems data

I'm using REST to query SharePoint 2013. I need to return a complete list of all files contained in a document library including subfolders. This query itself works correctly using a POST request: ...
1
vote
0answers
38 views

How to programmatically use the built in search functionality

How to programmatically use the built in search functionality to get the results and displays in the app part? I have found some jQuery REST search api code and it seems working when I try to add my ...
1
vote
2answers
58 views

Retrieve all user profiles

I'm in struggle to retrieving all user profiles in a single request. Is it possible to retrieve all user profiles including properties with REST search API?
0
votes
0answers
25 views

REST: CopyTo Works Only for Files in Document Libraries?

I'm trying to use CopyTo with a query like below: /_api/web/GetFileByServerRelativeUrl('/site/Documents/Forms/Content Type ...
5
votes
1answer
100 views

REST API Query Syntax

I'm trying to pull back all Projects that are Active and have a ProjectName="X". ProjectName is a lookup and Active is Yes/No. Here's what I have built: ...
1
vote
0answers
68 views

How to access Choice Field Value by using Lookup Field in REST API?

I have a list(ListA) which has a lookup field(LookupF) for another list(ListB). ListB includes a choice field(ChoiceF) which can take a single value. I want to call the selected value of the ChoiceF ...
0
votes
0answers
25 views

How to get user permission level from login/accountname - REST Query

I want to get user's/group permission by executing a REST query. I have tried several options, but I couldn't find a proper way. At last I tried following query, but it doesn't give me a readable ...
0
votes
0answers
40 views

Like an item from SharePoint App with REST

I need to post a like on an item in list or on a document in library... with REST :) Why REST ? Because I'm doing Sharepoint Online App, and doing REST with SP.requestExecutor is easier than JSOM ...
2
votes
3answers
205 views

REST: Filter List Items by Content Type Name

I can't for the life of me figure out what's wrong with this URL: _spPageContextInfo.webAbsoluteUrl + ...
2
votes
1answer
73 views

Rest API - $filter multiple values

Assuming there is a list of Students each with a zip-code, how can I get records for multiple (but not all) zip-codes. When using $filter how do specify multiple values? Here's what I have so far: ...
1
vote
1answer
22 views

Rest web service principalid

Any URI that can be used to find the principalid for user name and group name via Rest. I can only use separate URIs to find it.
2
votes
1answer
45 views

Can get User Department via JSOM or REST (no UPA)?

The farm has not UPA service deployed and I wouldn't do it. Is it possible to retrieve using JSOM or REST one of the properties that we see in the _layouts/15/userdisp.aspx? page for a specific user? ...
0
votes
1answer
85 views

Get only future events from calendar list in SharePoint 2013 Rest API

I'm using SharePoint's rest api to get the coming events in a calendar, with the following query: /_api/Web/Lists/GetByTitle('Agenda')/Items?$top=3 How can I change this query to get only events for ...
1
vote
1answer
102 views

Rest API - Get list items by column value

Assuming there is a list of Students with their zip-codes in one of the columns, what is the query string needed to get only students with a certain zip-code? So far here is what I've got: ...
0
votes
0answers
18 views

Rest API works differently for different values in lookup Field

I have a lookup column with values as Cobra,ViperandSnake. Rest API works fine when Cobra is selected but it doesn't work for other options.. My Complete code is.. function PreSaveAction() { var ...
0
votes
0answers
53 views

Cannot read property 'results' of undefined

I got this error for my code. I am getting the alert success, but after that it stops.. <script> function PreSaveAction() { var userName = $("input[title='Feature Name Required ...
0
votes
1answer
34 views

Link to cross domain images from SharePoint online app?

I've created a simple employee photo directory app for SharePoint Online (O365), packaged and deployed the solution as a SharePoint app. The lists and libraries where I'm getting my data from exist ...
0
votes
1answer
27 views

Adding the total count of lookup field in a new column

I need to get the total count of items in lookup field and then add it to another column, i.e. CountVal <script src="//code.jquery.com/jquery-1.11.3.min.js"></script> ...
0
votes
0answers
25 views

How to retrieve all replies in SharePoint sitefeed using REST api

I have a SharePoint sitefeed that I'm using REST services to get at. I am currently only able to retrieve the latest two replies of each thread. I've read this MSDN article where it states that in ...
0
votes
0answers
39 views

Column validation in sharepoint list

I have reffered http://www.sharepointbriefing.com/spcode/unique-validation-on-composite-fields-in-sharepoint.html <script type="text/javascript"> ...
1
vote
0answers
36 views

Document sharing with SP.Web.ShareObject REST API return 200 response with error “SPWeb.ShareObjectInternal:no resolved users”

Using SharePoint REST API call SP.Web.ShareObject I try to share a document with another user of the same SharePoint site. The API call returns success response (Code 200) but can't update the share ...
0
votes
1answer
42 views

Filtering Data on the results array Expanding a deffered uri

http://myserver/_vti_bin/ListData.svc/abcList?$select=ab/Title&$expand=ab This is my request. I am getting expanded results of ab in an "results" array Like this : "ab": { ...
0
votes
2answers
59 views

Reading lookup column using rest API

I have to read values from two lookup fields. I am getting values with one of them but for the other it shows undefined. $.ajax({ url:_spPageContextInfo.webAbsoluteUrl + ...
1
vote
2answers
86 views

Sharepoint authentication without CSOM, JS or 3rd party dlls

I am new to Sharepoint. I am trying to create a folder in sharepoint shared folder and this needs to work for both on-premise as well as sharepoint online. The problem that I am facing is, it works ...
0
votes
0answers
22 views

WF4InstanceId field missing - workflow app sharepoint 2013

i'm trying to get instance of workflow by rest api using WF4InstanceId but i don't find this field when i create my workflow in sharepoint app
3
votes
1answer
39 views

Combine SharePoint Lists in a different SharePoint Site

I have a task to create a SharePoint List that is a combination of 2 lists present on another SharePoint site. There is no admin access to this site. Is is possible to get it and manipulate it? ...
0
votes
0answers
40 views

Upload non-text file to sharepoint REST api from php

I am using Php curl to upload file to sharepoint api. I am able to successfully upload a text file using sharepoint rest api. However, when non-text files are uploaded, the file actually is uploaded ...
0
votes
2answers
97 views

Is it possible to create a Link to a Document with REST or JSOM?

Is it possible to create a SharePoint list item that uses the Link to Document content type? I would like to be able to add new links with REST, but JSOM could work too. I was thinking if I could just ...
0
votes
0answers
24 views

Can SSIS OData results return all records in list?

I have an OData source that is set to return the top 500 items of a list. I want to be able to return all records even if list exceeds 500 items. Can this be done in SSIS? If so, how would I go about ...
1
vote
1answer
30 views

Inserting data from a lookup column to single line of text column using rest API

Subsystem is a lookup column and in other list I want to insert the value from this lookup column to Title column.. data: JSON.stringify({ '__metadata': { 'type': 'SP.Data.SubsystemsListItem' }, ...
4
votes
2answers
125 views

Pass date as parameter in REST request

I've been banging my head against my desk for a while now trying to use this REST endpoint in order to convert local time to UTC time. The specific url I'm using is this: ...
3
votes
4answers
76 views

Inserting data to list using rest

I have a list with spaces in its name as Teams%20List $.ajax({ url: parts[0]+"/_api/web/lists/GetByTitle('Teams%20List')/Items", type: "POST", data: JSON.stringify({ ...
1
vote
1answer
41 views

Inserting lookup column using rest API [duplicate]

The below code doesn't work just because of the lookup column. It is unable to insert items to the list.. <script type="text/javascript"> $(document).ready(function () { ...
1
vote
0answers
35 views

Query for SharePoint 2013 REST search

I have to site columns (column1, column2) that are also crawled by the search and available as Crawled properties, so I can use them as filters in REST query as well. I'm now trying to build the REST ...
0
votes
3answers
78 views

Rest API alerts multiple times

If loop runs two times it shows alert in success function two times. I have tried with writing a condition inside this success function but that also doesn't work. What needs to be done, so that I get ...
0
votes
1answer
65 views

Inserting data to lookup field using rest API

In alert I am getting value in data.d.results[0](This is the value that I am getting from other list using rest).Subsystem.Title and also if I use only title column then the value is inserted in the ...
1
vote
4answers
91 views

403 Error on REST/JSOM call within a form in SharePoint 2013

I try to update a ListItem in a (foreign) SiteCollection wihtin an edit form by CSOM. But I can't get it to work without getting a 403 error: cs.updateListItem = function(siteURL, listNameSTR, ...
1
vote
1answer
54 views

How to use array in rest API for getting items based on array values

I have array with id's of list items so I want those items from list using rest. I found this /_api/web/lists/getByTitle(listTitle)/items?$filter=(ID eq 1) or (ID eq 2) or (ID eq 3) So in this I ...
1
vote
1answer
76 views

How to get status of like in sharepoint rest api query

I have a photo list in sharepoint. When the individual items are viewed I make a rest api call and find the title and number of likes for that individual item. ...
0
votes
2answers
46 views

Adding items of one list to another using rest api

For selected items(Based on their ID's)from one list, I need to store those items to another list using rest API. How to append those ID's to rest API?
4
votes
3answers
218 views

Getting sub sites using rest

In alert I am getting [object object], I need to get names of all sub sites. <script> ExecuteOrDelayUntilScriptLoaded(RetriveSites,"sp.js"); function RetriveSites() { $.ajax({ url: ...