The REST (Representational State Transfer) interface in Microsoft SharePoint Foundation 2010 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 ...

learn more… | top users | synonyms (1)

1
vote
0answers
7 views

Authentication using Sharepoint Online REST API to create Task for Organizational Site

I have a Office 365 Organizational SharePoint Online Account. I want to Add Few Tasks in one of the list programmatically. I saw options of using JavaScript API or hitting the REST URL's ...
2
votes
3answers
110 views

How do I use getbytitle with special characters?

I have a list named "St. John's Calendar". How do I use it with SP.CamlQuery? I'm thinking I need to encode it in some way, but nothing so far has worked. Something like: ...
0
votes
1answer
15 views

Retrieving metadata around documents in a library

This may come across as a novice question, but I was hoping to gain some direction or advice in how to query SharePoint 2013 to retrieve the metadata (document properties, including the Document ID ...
0
votes
1answer
14 views

how to attach file to list sharepoint 2013 via REST API

I need to upload file as an attachement to list SharePoint using REST API. UPload the file to list and not to SharedDocuments. There is a COM code: ...
1
vote
0answers
12 views

How to create multiple fields using REST query

According to MSDN, we can create field like below.. $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') /fields", type: "POST", data: "{ ...
0
votes
1answer
36 views

Creating folder is not possible in app web in sharepoint?

I am creating sharepoint hosted app. In that I created one list. Now I want to create folder in that list when I click on the button. Since it is in the same domain I am not using any cross domain ...
0
votes
0answers
28 views

SharePoint 2010 RESTful API listdata.svc can't find list

I'm trying to use listdata.svc on a SP2010 list and I get "The website cannot display the page". It works on other lists in that same site and even on a duplicate of the list on another site, where I ...
2
votes
1answer
39 views

Get last created item from SharePoint List using REST

I want to fetch ID and Title of last created item from SharePoint list using REST. I am using below url but it gives me wrong item, there are more than 10k items in the list. ...
1
vote
0answers
19 views

How to get Title Resource from a View with JSOM or REST?

I am able to get title/name resource from lists, content types and fields. However, I'm not able to get title resource from views. I'm not sure how well documented this is, but this is how I get ...
0
votes
0answers
10 views

Sharepoint 2010 REST Api Copy Files

I want to create a program that takes all files from a specified list from my sharepoint 2010 and copies them to a local location on the server. In the REST-Api for the 2013 version there is a method ...
0
votes
0answers
7 views

File Shared with

In OneDrive for Business you have the option to share a file. Can Edit/Can View I can find out who a file is shared with from SharedWithUsersId when using the below /_api/Web/Lists(guid'ID IN ...
0
votes
0answers
23 views

How to get Sugested People, Documents and Sites to follow in Sharepoint online using REST

I know we can use http://<siteCollection>/<site>/_api/sp.userprofiles.peoplemanager/getmysuggestions API but I am unable to get the Data
0
votes
1answer
24 views

Adding user to a SP group via REST api - some sites return 401 “Access Denied” but the code succeeds

I guess this is very specific so might be hard to find someone who has a clue - but it's worth trying. I have a simple console app in c# that adds AD groups to existing SP security groups using ...
2
votes
1answer
38 views

Help with REST $filter $select option

I have a REST call that I'm running to retrieve data on a list and filtering on a lookup field. This works fine and gives results as expected. ...
0
votes
1answer
56 views

POST Request through WebProxy with JSON data

I want to make a POST request with JSON data to a REST API through the WebProxy. Therefor I make a request like: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: ...
1
vote
0answers
25 views

Get ContentType by “internal name” through REST/JSOM

I understand content types has nothing equivalent to fields internal name, they only have Name, which is like a title. This can be changed, and alters between locales. My impression is that the safe ...
0
votes
1answer
35 views

Access Target Audience with REST API - The field or property 'Audience' does not exist

Resorting to asking a question on here as I cant seem to find anyone else who is trying to access the Target Audiences field with the REST API. If I try and pull out all the items in my list using: ...
0
votes
2answers
39 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
2answers
42 views

SharePoint Hosted App: Using Cross Domain call to access list items on Host Web

I can use Chrome Advanced REST tools to test out a get list items request on the host web http://mydev/records/_api/Web/Lists/GetByTitle('Uber Documents')/Items?$select=Title Ok now I want to use a ...
1
vote
1answer
54 views

Retrieving web part ID (GUID) with SharePoint REST API

I need to get the ID of a web part on a page before I have redirected the browser to the page. The reason for this is that I need to update a field value that contains web part settings, which are ...
0
votes
1answer
18 views

Search API development with refiner language column

I'm currently working on a search driven App in SharePoint 2013 based on JavaScript and some forms. The mission is to get results from the search refinery in real-time for a specific search term. To ...
1
vote
2answers
126 views

Dynamically get default display form url in sharepoint 2013 by REST or JSOM

How can I get default display form url of sharepoint list item via Rest or JSOM. I found the result by link: How to get the Display Form URL, using REST But the XML returns all of the display form ...
0
votes
0answers
20 views

Guest link via REST API

I would know if exist a way to generate a guest link for a file stored on sharepoint 2013 online via Rest api and access token. I tried this link passing the access token but doesn't work if you are ...
1
vote
3answers
82 views

Pulling user/group field data from SharePoint list using REST, jQuery, Knockout.js Sharepoint 2013

I'm trying to make an interactive task board based on the task list app in SharePoint 2013. The task lisk includes fields like "Title","Description","Status","% Complete","Due Date","Assigned To", ...
0
votes
2answers
44 views

How to add an AD group to a SP group using REST api?

I managed to write a code that adds a user to SP group using REST and it just posts this data: { '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.w|domain\\user' } to here: ...
1
vote
3answers
84 views

400 Bad Request while trying to add a user to a group using ShP 2013 REST api

I am having such a bad time trying to figure this out. I'm trying to add a user to a group by posting to: _api/web/sitegroups(8)/users The posted data looks like this: { '__metadata': { ...
3
votes
2answers
53 views

How to get deferred object for sharepoint rest queries

I want to create one common jquery library to work with REST queries in sharepoint. I have two files. REST_Operations.js consumer.js In REST_Operations.js I am writing rest queries ...
0
votes
2answers
27 views

Upload attachment in a document library using c#

Our client is running CRM and SharePoint and they would like to upload attachments from CRM into SharePoint 2013 Online. I started searching the web for some help and I came to this Microsoft page. ...
4
votes
2answers
94 views

SharePoint 2013 REST how to add pagination?

I am using SharePoint 2013 REST to display my list data in a table My list is getting long and how can I have pagination links blow my table? my code: <script> var app = ...
0
votes
1answer
7 views

What are the list workflow approval field values in a REST call?

I looked at the REST call for a list and noticed that the value for approval was <d:approval m:type="Edm.Int32">16</d:approval> for 'Approved' and <d:approval ...
3
votes
2answers
67 views

SharePoint 2013 REST display lookup fields?

I am using SharePoint 2013 REST to show data from my list, one of my field in announce list is AnnouncedBy which is a user packer field or is a lookup field how can I display it or get it using ...
1
vote
1answer
28 views

Server error when accessing Search api via REST

When trying to access the SharePoint search service via REST, I always get an internal server error with no information about the cause of the problem. My SharePoint app uses app-only permissions, ...
0
votes
1answer
31 views

UserProfile rest API

I need to retrieve User Profile information by REST. I am using this code: $(document).ready(function(){ var requestUri = ...
3
votes
2answers
82 views

How to run ReST query to a list when the item count is more than the List View Threshold?

I have a list that contains around 16000 items and will be growing. The List View Threshold is set to the default value of 5000 (SP 2010). I have nothing to do with the SP list views and UI for this ...
1
vote
1answer
29 views

Using Javascript to add to REST 2013 Sharepoint list “SPFieldMultiChoice” type

I'm trying to add to a checkbox field in my company's 2013 Sharepoint install. I'm using javascript as I've built a Chrome Extension to do some work hitting several sites and compiling information, ...
1
vote
1answer
38 views

How do I get the List REST method to return the results with the display name and not the internal name

zopv & s2u2 are internal names, but I would like the results to be returned using the display name. FileSystemObjectType: 0 Id: 2 ContentTypeId: "0x010100517BCCBD1C63034A8C1141184DAB12C5" ...
0
votes
0answers
49 views

Cross Site Collection call in SP Hosted App

I want to read a list from one of my site collection(SiteColl A) using a SP Hosted App. This App will be deployed in another Site collection(SiteColl B) in the same web application. I know one way to ...
1
vote
1answer
28 views

Get site title by its URL using REST

I am trying to get a User Profile property that contains an URL for a SharePoint site, then I want to use this URL to get the site title using REST API. Is it possible?
1
vote
1answer
35 views

Transfer times for REST API queries vary a lot

I'm making use of the REST API to get lists. But I'm finding the transfer times are varying a lot (between ~1 second and up to 20 seconds). How can I improve this? What should I look into? ...
0
votes
1answer
51 views

Cascade drop down lists in SharePoint 2013 using jQuery, REST and AJAX

This is what I have so far: Loading the States in the State lists: var ItemStateDD, ItemCountyDD, ItemIDDD; $(document).ready(function () { //state populate $.ajax({ cache: false, ...
2
votes
1answer
39 views

Field value is null in SharePoint search REST API result

I have simple search REST GET query as below : https://<site url>/_api/search/query?querytext='research'&selectproperties='Title,Author,Created,ContentTypeId' The search result XML ...
0
votes
2answers
54 views

How to use SharePoint 2013 REST service to retrieve data from lookup field

I have two lists: 'Company' and 'Customer'. In 'Customer', I have an auto look up field called 'parent'. Then I tried to use Rest to retrieve data from customer like this: ...
1
vote
1answer
43 views

How to retrieve Multi Value Lookup List using SharePoint 2013 REST Api

I have a Blog subsite of my main website. I am trying to get the Top 2 blog posts along with the number of comments and actual comments. I am able to get Number of Comments with the field ...
3
votes
3answers
168 views

Combine REST query “GetItems” action with OData $filter parameter

I'm able to call GetItems through REST by using an example by Erik C. Jordan. Now I'm trying to combine this with a simple OData $filter parameter. I have a REST query like this (jQuery on SharePoint ...
1
vote
1answer
13 views

SharePoint integration outside farm

Can someone provide me an overview of the possible ways of interaction with SharePoint from an external source. For example add items to a list from an application not running in the farm. In a farm ...
1
vote
1answer
45 views

REST Api Add item to list in App Web

I have an app that contains a few lists within its own app web. I need to add new items thru the REST Api. The problem is when I try to add an item I get a 403 Forbidden error Which is odd ...
1
vote
0answers
25 views

2013 workflow, get list item in parent web

In a sandboxed sharepoint 2013/office 365 workflow, I'm trying to query a list (using REST) in the root web, for a value. If the workflow fires in the root web, I get the value. If you call it in a ...
2
votes
1answer
28 views

Update SharedWithUsersId REST API

I've been looking at the REST API to update fields in SharePoint. I can get it to update the title without any problems, however when I go to update the SharedWithUsersId they do not update. I don't ...
1
vote
1answer
50 views

Use a CQWP to create a list of document libraries

I have a site with a large number of document libraries. There are constant adds / archiving of document libraries, so the list changes. Is it possible to generate a dynamic list of links to these ...
2
votes
1answer
90 views

How to get the Display Form URL, using REST

I need to get the display form of a list item using REST, I tried EncodedAbsoluteUrl and FileReaf, but none of them works from a SharePoint hosted App. FileReaf its just a relative url to the List, ...