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)

1
vote
3answers
7k views

Get list items created by logged in user with REST api

How can I get all list items created or changed by the currently logged in user with this function? What's the correct query? // Getting list items based on ODATA Query function getListItems(url, ...
0
votes
0answers
23 views

Best practice to implement paging in rest api for Get Items Endpoint

I currently managed to do it with /GetItems(query=@v1)?@v1=${query}&$expand=${expand}&$top=${pageSize}&$skip=${top} but looks like it is much slower slower (2minutes vs 20seconds) then ...
1
vote
0answers
12 views

requesting excel services rest from console application but the server returns error code 403 forbidden

I just want to access an excel document in SharePoint, which is possible through excel services. I've written the following code for that but still it is giving me error of 403 forbidden. My code: ...
11
votes
4answers
6k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
0
votes
0answers
13 views

How can I enumerate an AD Group using REST or CSOM

Our organization has decided to use only AD Groups (against my recommendation to use a mix of AD and users in SP Groups). So now I'm trying to List members of an AD Group, and find out if the current ...
0
votes
0answers
22 views

REST API / People Search Results

In my people search results I am querying the REST api to get a link to each person's CV, which are all held in a single document library. I am returning the correct results, but rather than one CV ...
0
votes
1answer
20 views

Allow User to Read List Data Over REST Only

I have a list (used as a lookup) that I don't want users to be able to see or get access to any of the view pages to see the items in the list. I have a form on another site that populates a drop ...
0
votes
1answer
34 views

SharePoint 2010 file upload via REST api

I am developing application that access files on SharePoint 2010 via REST API I referenced this link, so I made it download and get metadata for documents. But, While I am trying upload file, I can'...
1
vote
3answers
37 views

Making async calls in for loop

I need the function addColumns(which has an async call in it) to be executed as many times as limited in the for loop ,and when the for loop is done then i want to call the function InitData. The ...
0
votes
1answer
945 views

How to create list item in an external list using SharePoint workflow?

Environment: SharePoint 2013 SP1 I have an External List displaying data exposed through a WCF service. Creating, Reading, Updating and Deleting (CRUD) items in the external list works fine in the ...
0
votes
1answer
18 views

Why won't a Search REST API request not work on all Site Collections?

My organization has a SharePoint Online tenancy. I created a Test Site collection as a Subsite of the main Site Collection. I'm able to submit the following REST call through a chrome browser, and I ...
0
votes
0answers
7 views

Get User's Roleassignments / Office 365 group permissions REST API

I have added users to a Office 365 group but I can't see which users are in which group using the Sharepoint API. When I query currentuser?$expand=Groups it's empty but when I ask the roleassignments ...
0
votes
0answers
15 views

Limit results SharePoint 2013 api's

Is there a way to limit the max results serverside returned by "/_vti_bin/people.asmx" & "/_vti_bin/client.svc/ProcessQuery? Or perhaps only return exact matches (by overriding searchText ...
2
votes
1answer
1k 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 ...
1
vote
2answers
97 views

SharePoint REST API - Get 2 items only

I want to query Calendar list and get the upcoming 2 events. How should I form my query ? This is the query I have to read the items from required list : var url = _spPageContextInfo....
1
vote
1answer
1k views

401 Unauthorized Exception with SharePoint search rest API

Note: Please do not make my question as duplicate, still i haven't get any proper answer for my question. I am getting 401 unauthorized error when calling a sharepoint search rest api (/_api/search/...
0
votes
0answers
17 views

How to get Display name of MMS column using rest

I am using the rest call to get the display name of MMS column "Assetname" and I am getting the GUID https://<site>/_api/web/Lists/GetByTitle('HomePageConfig')/items?$select=TagsTitle,Assetname ...
0
votes
0answers
18 views

Access Denied when trying to create an item with SharePoint API

I am using OAuth to authenticate a client to access SharePoint and create some files. I have the access token and can access endpoints with no issues. However, when it comes to creating items, I am ...
0
votes
1answer
32 views

REST Looking for the last created / updated documents in 24h for all workspaces

I am looking for a solution to get all the created / updated documents for the last 24h for all my workspaces. How is it possible via REST API? Like an Activity Feed.
0
votes
1answer
30 views

Unable to get User details in SharePoint 2010

I am using following code to get user details.... function getUsers() { $.ajax({ url: "/_vti_bin/ListData.svc/UserInformationList", type: "GET", headers: { "...
1
vote
0answers
27 views

Expand Fields and Items in one call and filter the expanded

What i am trying to do is to get all lists and from all lists expand fields and items. Then filter some fields, and get all items (and not only first 100) /_api/Web/Lists?$select=Title, Id, Hidden&...
0
votes
3answers
275 views

Get Root Website URL in REST API

How to get SharePoint Root Website or parent web site URL in REST API?
1
vote
1answer
35 views

REST API Filter by LoginName from user list not working

I have a list A, which has a column owner of type "Person or Group". I am using REST API to query this list(using jquery). I would like to use column owner to filter records by username. I have a ...
2
votes
1answer
52 views

Workflow to count total numeric value in a column and show on a new column

Environment: SharePoint 2013 Enterprise Is it possible to sum the numeric values in a column and show the output on a new column in SharePoint 2013 List using SharePoint Designer Workflow? List ...
1
vote
2answers
61 views

Fetch lookup column data in excel using ODATA Feed from SharePoint List

I am trying to fetch a data from SharePoint list to excel. Lookup column with multiple choice (person and group field) is not getting populated in the excel. Can anyone help me with this. Below is my ...
0
votes
2answers
758 views

How to identify change to the “Modified By”, “Created By” , “CheckOutTo” column title through REST API

I am an iOS developer. In one of my application, I need to make modified by, created by and checkoutto user's information along with the document/list item information from SharePoint server through ...
2
votes
1answer
43 views

Can I query ContentItems using tags in SharePoint 2010 API?

I am experimenting with SharePoint 2010 REST Interface and SharePoint 2010 Web Services to retrieve content based on certain Tags. Is there a way to retrieve content based on social tags in ...
0
votes
0answers
27 views

Authenticate the SharePoint 2013 Foundation site into the android application

I have a site in SharePoint Foundation 2013 which is public (within organisation domain - no network boundary). Now I want to make a mobile app for this site. Below are the details: I need to develop ...
0
votes
1answer
11 views

Listdata.svc Environmental error

I have a query that works in UAT but when I run the same thing in Production, I get a 500 Internal error. The field that's breaking is 'ITProjectManager' which is of type 'Person or Group'. When I ...
0
votes
2answers
2k views

Sharepoint 2013 Rest API _api/Web/SiteUserInfoList filter Name

I have some trouble to use the Sharepoint2013 Rest API _api/Web/SiteUserInfoList. I need to use a $filter on the Name. I get always a 400 Bad Request. This is my endopoint rest ....my_site.../_api/...
0
votes
1answer
34 views

using RestAPI and jquery, we want to create term, by setting the values of description and available for tagging

In Sharepoint hosted app, using RestAPI and jquery, we want to create term, by setting the values of description and available for tagging. How will we do this?
10
votes
2answers
636 views

Which one is faster CSOM or JSOM

Understanding which one has better performance for performing CRUD operation in SharePoint List, CSOM or JSOM?
5
votes
2answers
1k views

Using REST to approve a list item

I am hoping that someone else here has tried to do this successfully. I am trying to approve a list item via JavaScript using the REST interface. I know how to do it with CSOM, but in this scenario I ...
1
vote
2answers
1k views

Getting Calendar items on Office 365 using REST API

I am having trouble with a REST call using jQuery on Office 365 and was wondering if you guys have ever experienced something similar and could give me some hints? What I am trying to achieve is to ...
7
votes
2answers
4k views

Retrieve toplevel site's subsites using REST _api

I'm currently working on an iOS app which uses _api-services to retrieve data stored in documents libraries of a SharePoint Online. Consuming _api/web/Lists/ works well so far. At the moment the REST ...
1
vote
4answers
3k views

How to get the ID of a list item with a given GUID in Sharepoint online with REST api?

I tried a request at a url of the following form .../_api/web/Lists/getByTitle('docLib')/items?$select=id,GUID&$top=1&$filter=GUID eq '2779cf8051-381f-4834-93dc-ece6345dde33' and i get "...
0
votes
1answer
814 views

Is it not possible to add user to SharePoint group using REST for cross domain calls?

I am trying to add user to a SharePoint group in a "SharePoint Hosted App". First I am checking whether the user exists in that particular group or not. If not, I am trying to add that user to a group....
0
votes
0answers
12 views

Start a designer Workflow from within a designer workflow

I don't see any Action items in the designer that would allow me to call a workflow from within a workflow in SP designer 2013. However I had seen an example that this could be done by making a REST ...
1
vote
1answer
795 views

How is ViewsRecent in search results calculated?

I need to find the top 3 visited webs for the last 4 weeks and I need/want to do it via the REST search api. This is SharePoint 2013. The value ViewsRecent returned by a search query seems to be what ...
0
votes
2answers
48 views

Display REST Data

I am running into few issues. Issue # 1: When I use the following REST endpoint uri in chrome I get XML back. However, IE throws an error (IE cannot display this feed). I downloaded REST API Browser ...
0
votes
0answers
28 views

Troubling uploading file from (coldfusion) server into sharepoint with Rest

Sharepoint is giving me this message which I can't interpret. "Microsoft.SharePoint.Client.InvalidClientQueryException","message": {...see below...}" is not valid."}}}" URL: https://{...
1
vote
1answer
40 views

SharePoint REST API call not responding

Working on a project where we are creating a new Site Collection for a department. We are new to SharePoint. During our testing we created a Site Collection called Test. I came to realize that the ...
0
votes
1answer
43 views

Retrieve lookup field value using REST API

In my sharepoint site I have another sub-site. On the top level site there is a list to store 'document type'. Within the sub-site I have a document library which looksup the 'document type' list. I ...
-1
votes
1answer
44 views

Status Code:500 Internal Server Error, while calling a webmethod in SharePoint 2013

I am trying to call a webmethod written on application page but getting an error, Status Code:500 Internal Server Error JavaScript: <script type="text/javascript"> $(document).ready(...
0
votes
1answer
34 views

Get list items using REST - Only the first folder is returned

I am using following to display all the items in content query webpart but only the folder is displayed. What am I missing? Sharepoint 2013 <script type="text/javascript" src="https://ajax....
1
vote
1answer
19 views

Rest API - search for term across all columns

I have a list with the following fields: ID, Title, Location, Manager I currently have search set up such that if I enter in a term, it returns all the items with that term in the Title: ../_api/web/...
0
votes
1answer
11 views

Trying to Access Name Value for Users in a Group using REST

Is it possible to access the "Name" value in a SP members group using REST? I'm able to reach LoginName, Id, Email, but not Name. My ultimate goal is to pull out all users from a group with specific ...
3
votes
3answers
2k views

Updating SharePoint item using REST API from outside of SharePoint

I need to update (CRUD) SharePoint list items from a stand alone application outside of SharePoint. This application can only use JavaScript to call SP. Deploying it as an app on SharePoint won't be ...
1
vote
1answer
3k 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 ...
0
votes
0answers
21 views

REST API's corresponding to the ASMX Methods

At the moment we integrate with SharePoint using the Copy.asmx and Lists.asmx Web services but as these are deprecated in Share Point 2013, we want to move to REST endpoints but the big question is ...