Tagged Questions

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

0
votes
0answers
111 views

Excel Rest c# program giving error

I'm facing these issues while I'm trying to compile a simple example of using the excel rest API: Error 4 The type or namespace name 'RangeResponse' could not be found (are you missing a ...
2
votes
1answer
122 views

What is difference between SharePoint REST and ODATA?

I have read that SharePoint REST and ODATA provide web services like WCF to fetch list/items, etc. So what is difference between REST and ODATA? Please provide a programmatic example to show the ...
1
vote
1answer
755 views

Get ContentType name with select fields

I have a problem with getting the ContentType name for a item. when i use http://sp2013dev/sites/mms/_api/web/lists/GetByTitle('List')/items(1)/?$expand=ContentType I get as response all Fields ...
0
votes
1answer
196 views

How to make a REST call with a console application to the SEARCH REST API?

I have created a console application by using this tutorial: http://blogs.msdn.com/b/kaevans/archive/2014/03/02/building-a-sharepoint-app-as-a-timer-job.aspx With some differences of course, in my ...
1
vote
1answer
144 views

Cannot see property using search api

I tried to retrieve results from the search api using REST call like this: http://server/Search/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31' I can see the ...
0
votes
0answers
49 views

Set Web Part connection via client side code

Is there a way to set up a Web Part connection using client side code? I am open to any client side solution: SOAP services, JSOM, REST, other...
0
votes
2answers
310 views

Use a WCF service or REST api for JSON?

I've just started working with SharePoint 2013 on a company that uses a WCF service to return JSON data with .svc-files and custom classes. I got the task to populate a table with items from a List, ...
0
votes
1answer
36 views

where are foreign lists and how to query them?

I use REST/JSON to query Sharepoint 2013 where "expand" helps me to retrieve the authors name from a foreign list. .../_api/lists/getbytitle('list1')/items?$select=*,Author/Title&$expand=Author ...
1
vote
1answer
2k 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, ...
2
votes
1answer
204 views

How to add URL to list using JavaScript

I have a list with a title and a url. I'm trying to add a new url using this function function addListItem(url, listname, metadata, success, failure) { // Prepping our update var item = ...
1
vote
1answer
363 views

Sharepoint 2013 delete AttachmentFiles by JS

how can I delete an AttachmentFiles of a list item by Javascript? (with REST or using SP.RequestExecutor) Thank,Nk
2
votes
1answer
1k views

How to copy files between sites using REST API in SharePoint Online

I have a file in a document library called images: https://xxx.sharepoint.com/Site1/Images ... and I would like to copy the file to the document library called backup in this site: ...
0
votes
1answer
83 views

REST query cannot be viewed in Internet Explorer

I am trying to get the results from a site using REST call like this: http://server1/sites/mysite/_api/web/lists/getByTitle('list title') But it's giving me that Internet Explorer Cannot Display This ...
0
votes
1answer
1k views

How to Get User Active Directory Groups in Sharepoint Online

I can't find any documentation or a way to find if a user belongs to an AD group with Javascript neither with the REST API or with the client model JSOM. I have a page in a Sharepoint site and I want ...
0
votes
1answer
77 views

Getting extra information with REST API call

So I'm trying to get TeamCalendar information out of Sharepoint in a single call, but I can't get the Attendees out. This is my code: $.ajax({ url: ...
3
votes
1answer
1k views

Access programmatically to SharePoint 2013 Online REST Web Services from Windows 8.1 Application

I have a problem in connecting to SharePoint online from the Windows 8.1 Application. My goal is quite simple: Connect to SharePoint Retrieve the List of Lists Get Items from a List I have tried ...
1
vote
2answers
281 views

Get survey questions via Rest API

I am able to get all the fields in a survey using the web api url : _api/Web/Lists(guid'cecxc8b4-bbvc-472c-ae3f-d648bd0bb025')/Fields How ever I am not able to distinguish questions from the ...
2
votes
2answers
375 views

How to use SharePoint list data in an Android application?

We want to pull in the SharePoint list data into an Android application. Is REST webservices the way ahead? Or is there any other method? Please provide articles reference in your answer. How do ...
1
vote
1answer
144 views

Normal HTML page to access the SharePoint Online data

I would like to develop a page to get the list data from SharePoint 2013(Office 365) I try to get the data from REST API e.g. String ...
0
votes
2answers
560 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 ...
0
votes
0answers
182 views

Access Denied Calling listdata.svc

I am trying to create a custom InfoPath form to display a List Information , I used REST API it works fine in the preview mode but when I open it in browser it throws up error XML data that is ...
8
votes
3answers
976 views

How can I query for “AssignedTo = [ME]” using REST?

It is quite common to use "Assigned To = [Me]" in SharePoint views to list the tasks / items which are assigned to the current user. This of course includes both the items which are directly assigned ...
0
votes
0answers
460 views

Office Web Apps Authorization with custom WOPI host from SharePoint 2013

I need to create a custom WOPI Host to serve files from SharePoint to Office Web Apps. The WOPI host is a simple REST service which is deployed in ISAPI. The way office web apps works is like this: ...
0
votes
1answer
106 views

Add file to host web in SharePoint hosted app. Is it possible with Manage permissions?

I wonder is it possible to add a file from a SharePoint hosted App to host web without setting Full permission for the Web? function uploadFile(data) { var url = appUrl + ...
1
vote
0answers
220 views

How to configure SharePoint REST API to return JSON by default?

I'm using a 3rd party HTTP client to retrieve data from SharePoint. I want to get the result in JSON format. I know one method is to add the header "Accept": "application/json; odata=verbose" ...
0
votes
0answers
392 views

REST API Web/Lists SharePoint Online vs. On-Premise - different responses?

I'm currently working on a client application for iOS which retrieves documents libraries from a remote SharePoint 2013. To support SharePoint Online as well as On-Premise installations i got a test ...
1
vote
1answer
155 views

REST api to get the value of richhtml field without tags

I'm trying to get a field named Content from list which is of type RichHtml. When I try to get this using REST api call, I'm getting the content the html tags. How can I get the value only from this ...
3
votes
2answers
649 views

Return Specific Content Type in Site Collection Using REST API

I am looking for a way to use the REST API to return specific fields of a specific content type so that I can bind it to a table. It seems the List API is used against a specific List but in my ...
2
votes
2answers
131 views

Providing searchable metadata or 'tagging' a subsite

I'm a newbie at SharePoint and I was wondering what was the best way to implement this: I am creating subsites under a site collection using a web form and JS plus the REST api. Basically, what I ...
1
vote
1answer
199 views

How to get content types available to a library using the REST API?

Using the REST API, how would I go about obtaining the content types that are available in a specific library in SharePoint 2013? I am aware that I can get the content types of items from a list, but ...
3
votes
1answer
249 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 ...
2
votes
2answers
544 views

retrieving subsites from parent web using REST

I am trying to get all subsites from a parent web using REST API. I tried following query which shows "The page cannot be found". mysite/_api/web/parentWeb/webs
1
vote
1answer
404 views

How to get username through REST

I am currently working with a task where you have a SPList in one farm that holds some data that we need to aggregate into a view on another farm. Therefore I am working on a Visual Web Part that ...
3
votes
2answers
91 views

taking one day before if save data by REST through Visual Studio

I am saving a date picking from date picker of jqueryUI. While saving I am using REST Services. But the problem is that it taking the date one day before. And timezone is changing (already have ...
2
votes
1answer
1k 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
0answers
60 views

Workflow HTTP PUT request error

Receiving this error when trying to update a list item via HTTP PUT in SPD Workflow: error":{"code":"-1, ...
2
votes
1answer
304 views

REST listdata.svc call to another site in collection doesn't return people picker values

I have two sites on the same collection. There is a people picker field on my list in site2. I am in Sharepoint 2010. mysharepointsite/site1 mysharepointsite/site2 I am using the Sharepoint REST API ...
3
votes
1answer
213 views

2013 Collaboration - How to programmatically get a list of all the community sites a user has access to?

Is there a way to get a list of all of the community sites that a user has read/write access to, using an API that can be easily consumed by C#? We would like to get a list of all of the community ...
3
votes
1answer
100 views

Error calling REST API in Firefox

I am using Rest API for Follow Functionality. My JS is working fine on IE but it doesn't work on Firefox(neither it goes under success call function neither under error. Is anyone having any idea ...
3
votes
0answers
318 views

How to add items to a document library when uploading a file using Rest in SP 2013?

I am trying to add file to document library by using REST IN SP 2013 APP MODEL. This is my code I can upload file to document library but I can't add items value to that document library in fields ...
4
votes
2answers
516 views

Retrieve site collection quota and used storage from REST or JSOM

Is there a way to retrieve the amount of storage used and the quota limit for the Site Collection using the JSOM client or the REST web services?
1
vote
1answer
419 views

Search Api, filter by parameter

I'm using the Search Api to get the last modified documents by the person using the search. My search string is looking like that: https://www.intranet.i/site/_api/search/query?querytext='* ...
1
vote
2answers
1k views

Checked null with dateTime in REST API SharePoint

I want to get all article pages which Article Date is not null. so I have try to do by this way. var ArticlePageContentTypeID = ...
0
votes
1answer
52 views

Assign Meta-Data to Doc-Lib-Item with Rest in a ajax chain

i developed a custom Upload-Form to be able to upload a local file and pre-populate Metadata Fields at once. So the file will be uploaded to a document library and specific meta data fields will be ...
4
votes
3answers
793 views

SharePoint REST API call with more than 500 rows

I have an AJAX call querying the SharePoint REST API which will return more than 500 rows: $.ajax( { url: _spPageContextInfo.webAbsoluteUrl + ...
6
votes
2answers
2k views

How to return all user profiles

I need to query the entire user profile store and do multiple operations such as filtering based on one user profile property, sorting by another, and grouping on yet another. Is this possible using ...
0
votes
1answer
85 views

Querying SharePoint search for all departments with REST API

I currently have an ajax request set up in my javascript to call the search API but this only gives me departments matching whatever I input for query: $.ajax( { url: ...
1
vote
1answer
288 views

REST returns List Items but Response is blank in SP2013

I am SOOOO frustrated ... I have a jquery function to grab list data and when I log "data" I see the full {d} with a {results} holding all the list items. But when I run it through an $.each function ...
0
votes
0answers
42 views

Access content put on legal hold via SharePoint REST service

We currently crawl a lot of SharePoint content into an external search engine index by using the SharePoint REST service. With the introduction of SP 2013, there is a new capability to apply site ...
0
votes
1answer
359 views

How do I get List Discussion hierarchy using Sharepoint online 2013 restful interface

I am trying to find the hierarchy of Discussions (Items) for displaying Subject: I have something to sell   Reply: I'll give you $5 for it   Reply: I'll give you $5.01 But I ...