Questions tagged [listdata.svc]

The listdata.svc is a SharePoint OData webservice which can be used to work with any lists (including document libraries) and provides full CRUD support on the list items.

Filter by
Sorted by
Tagged with
11
votes
2answers
24k views

What is difference between listdata.svc and clients.svc in SharePoint?

What is difference between listdata.svc and clients.svc in SharePoint? Both are webservices and can be used to fetch list items.. I have read that any serverside object model or clientside object ...
10
votes
3answers
4k views

How to avoid _metadata in a REST response (listData.svc)

I am pulling data from a SharePoint list with listData.svc, and _metadata represent more than half of the response content. Is there a way to return list fields only, without the metadata? Below an ...
7
votes
2answers
23k views

Error while referring “/_vti_bin/ListData.svc”

While trying to refer "ListData.svc" service in my VS.NET WinForm project, I am getting an error The HTML document does not contain Web service discovery information. Metadata contains a reference ...
7
votes
8answers
5k views

REST ListData service and anonymous authentication

I’ve been trying to use ListData.svc to get a REST feed from a list (actually a pages library) using something like: http://SharePoint/_vti_bin/ListData.svc/Pages?$orderby=NewsArticleDate&$filter=...
7
votes
2answers
2k views

Query ListData.svc to return document libraries only

I am working on a very simple app on iOS that should basically allow the user to login (got that part working), then list only document libraries and allow user to navigate these and download files. ...
6
votes
2answers
14k views

How to get lookup value only via REST (listdata.svc)

I am trying to retrieve a list of items including lookup fields via listdata.svc. My lookup points to a list of companies which has the following fields: Title, Address, Phone. By default, listdata ...
5
votes
6answers
5k views

Folder creation in Document library using listdata.svc

Do you have any tips how can I create a new folder in a document library using listdata.svc (OData REST interface of SharePoint 2010) from JavaScript? SP creates a new file instead of a folder. I can ...
4
votes
2answers
18k views

ListData.svc returns Error 400: Bad Request in Visual Studio

I wanted to use the REST Service in an application. So when I add the service reference in Visual Studio I get this error There was an error downloading 'http://myMainSite/sites/subSite/_vti_bin/...
4
votes
4answers
16k views

REST service $filter Date column

Using the REST services, I'm trying to filter by the Created column, which is a Date data type. When trying to $filter on that column, I passed in the same date format that comes back in the JSON ...
4
votes
1answer
2k views

REST: unable to retrieve lookup data from top level

At the top level of my site collection, I have created a list called "Markets", and a site column called "Market", defined as a lookup to the Markets list. In a subsite of this same site collection, ...
4
votes
2answers
4k views

SharePoint 2010 REST field names capitalization rules

I have a column called "myColumn". When working with that column in SharePoint REST services I must use "MyColumn" instead (note the capitalized leading 'M'). Likewise, if my column name has spaces, ...
4
votes
2answers
1k views

REST API Filter by multilookup property

Having an Activities list with a column called Engineer of type lookup that allow multiple values. How to build a call to listdata.svc in order to get only activities that are asigned to an Engineer ...
3
votes
2answers
1k views

ScriptManager ServiceReference in SharePoint

I have always used jQuery.ajax to retrieve data from listdata.svc or lists.asmx in SharePoint and from some custom web services. Now I will try Microsoft Ajax Library and especially ServiceReference ...
3
votes
1answer
2k views

Updating a multiselect field via REST API 2010

Can you update a mulivalue choice field via REST API in SharePoint 2010? If I perform a simple GET I receive: { "d": { "__metadata": { "uri": "http://dev.domain/sites/plm/...
3
votes
1answer
3k views

REST API update a muli-value user field

I have created a custom list and added a multi-value user field (no groups) called AssignedTo to the list's definition. Using the SharePoint interface I added an item with a value for Title and ...
3
votes
2answers
2k views

Listdata service with managed metadata or multivalue columns

The PowerPivot team just posted a white paper on Using SharePoint List Data in PowerPivot, which is awesome. Now I can slice, dice, and analyze the contents of a document library I manage. Except… ...
3
votes
1answer
313 views

Order field not available in a ListData.svc query

I want to query a links list using ListData.svc and have this ordered, using the query string $orderby, by Sharepoint's own internal order field. By internal order field I specifically mean the field ...
2
votes
1answer
4k views

REST API and User Information List Permissions and Breeze.js

Users who are not site collection admins can read from the User Information List without any issues when using http://server.domain.com/_vti_bin_/ListData.svc/UserInformationList but these users get a ...
2
votes
1answer
1k views

ListData.svc with complex filters, Internet Explorer, 400 Bad HTTP request,

I have a problem understanding how ListData.svc can be debugged using IE8 and IE9. I have a URL that looks like this: hostname:8181/_vti_bin/listdata.svc/ImageBanners?$filter=endswith(Path,'TopLeft'...
2
votes
1answer
3k views

How to get results from listdata.svc from a certain folder

I'm looking to get a certain set of data from my list using the listdata.svc service with AJAX. The problem is inside the list I have folders, and I'd like to only receive elements inside a certain ...
2
votes
2answers
1k views

Creating new items containing lookup field with listdata.svc and json

I'm calling listdata.svc with xmlhttprequest and POST to pass json. The new item is being created, but a new item is being created on the lookup list when I do, even though I am passing an existing ...
2
votes
1answer
444 views

SharePoint2010 /_vti_bin/listdata.svc

I was trying to mimic a search site via listdata.svc due to the incapability of OOTB Search Result webpart. Is there'a way to utilize KQL or any other way to allow users to search for a sentence? ...
2
votes
3answers
4k views

ListData.svc returns “An error occurred while processing this request” for some lists only

In SharePoint 2010 Service Pack 1, we are having trouble with ListData.svc. In most cases, it correctly returns data from a list. However, there are a few lists which don't work and instead return ...
2
votes
1answer
859 views

anonymous access and listdata.svc

We are trying to use an ajax call to get list data for an anonymous site. We are using this on our intranet site and it works well. We build an html file that calls the list service (via ajax) and we ...
2
votes
2answers
499 views

In jquery rest result for person object as a [object Object]

Would it be possible to get a Person or Group type as a string rather than and [object Object], I am handling everything within the front-end with REST calls to listdata.svc URL's. CODE // DISPLAY //...
2
votes
1answer
1k views

listdata.svc and custom field types

I have a custom SharePoint field, that inherits from SPFieldMultiColumn (always a SPFieldMultiColumt(2)). When I add this field to a SharePoint list it works good. But I can't see that field in the ...
2
votes
0answers
1k views

_api/web/lists/ vs. listdata.svc - or: hot to get Likes or Ratings?

Working with SharePoint 2013 onPremise here. And it is driving me nuts :-( i have a custom list with attachments and Likes enabled. And I want to retrieve both via REST - which seems impossible if I ...
2
votes
0answers
57 views

Use one ListData.svc reference to update multiple lists

Can you use one ListData.svc reference to update multiple lists even if the lists have different columns? Site A - Shared Documents Default columns Model Year Make Site B - Shared Documents ...
2
votes
0answers
956 views

ListData.svc: How to upload attachment?

How does one upload an attachment to a list item using JavaScript/HTL5 file upload API and the ListData.svc API? I know I can do this using managed CSOM but I want to understand the SP 2010 REST API ...
2
votes
0answers
57 views

ListData.svc appends the library title with 0?

It seems that if i create the following libraries on a Sharepoint site: Test Library 2 Test Library2 TestLibrary2 then the ListData.svc will return the following entitites: <collection href="...
2
votes
2answers
770 views

ListData.svc and Task Approval

How can I approve a workflow task using the ListData.svc? I am attempting to just set the value of ApprovalValue to "Approved" but this is not working at all. Any help you can give will probably save ...
1
vote
2answers
581 views

ListData.svc REST and URL Encoding of Field 'Parts Released?'

I have a field with the display name Parts Released? but I cannot seem to figure out how to encode the field name. I have tried Parts Released%3f but regardless of what I try I get a 400 Bad Request ...
1
vote
6answers
2k views

How to filter distinct/unique Records in SharePoint 2010?

I have a list with "Created by(person-default), Period(single line of text), Team(single line of text)...." fields. More than an entry is allowed per user. Now, I may have to find the list of ...
1
vote
1answer
767 views

How to get list data using ListData.SVC in Silverlight Application?

I am “not” looking for solution which uses webrequest to get xml from listdata.svc. I am "not” looking for clientcontext ( since Silverlight app will be deployed to the different server where ...
1
vote
3answers
467 views

rest query orderby takes null as 0

I am making an ajax call to get the list data in SharePoint 2010 I am using orderby to sort based on a column http://PC:2010/site/_vti_bin/listdata.svc/listName?$select=ThumbnailImage,Created,...
1
vote
2answers
3k views

ListData.svc gives a 500 error when querying some lists

I'm trying to use ListData.svc to retrieve details from a SharePoint list, but I get the following error: Error Message: Cannot connect to the specified feed. Verify the connection and try again....
1
vote
2answers
402 views

How to read lookup multi columns with the Sharepoint Listdata Client Object Model?

I have a list with a couple of multivalued lookupcolumns. When I try to do something with these fields the count is 0 even though I assigned it a couple of values. Below is a snippet of my code: (I ...
1
vote
3answers
11k views

REST filter=startswith not working when filtering using Id field

When filtering a text column like in built Title field using startswith, proper results are returned. Example: http://aissp2013:111/_vti_bin/ListData.svc/ChangeRules()?$filter=startswith(Title,'Ti') ...
1
vote
2answers
944 views

Site collection REST API

I would like to know how to access a list of sites with the ListData.svc REST API. Thanks.
1
vote
2answers
1k views

Can we count the list items by group using Listdata.svc in SharePoint 2010?

I want to display a dashboard based on the SharePoint list items, can we get the items count by group using Listdata.svc? Could use the below query to get the count for a group .../_vti_bin/ListData....
1
vote
1answer
2k views

ListData.svc Returns 500 Internal Server Error - “Arithmetic overflow error…”

I'm having issues with some CAML deployed list instances. After deploying the lists, they do not appear in SharePoint Designer. Likewise, when attempting to connect to (almost all of) them, either a ...
1
vote
3answers
873 views

Discrepent Column Names in UserInformationList

I have found a strange difference between our production and dev servers in the UserInformationLists. In dev the name property is called Name but on the production instance it's Title. Then the job ...
1
vote
0answers
77 views

vti_bin authentication for a site collection/sub-site

I'm trying to retrieve data from a SharePoint 2010 list in SQL Server Integration Services using the OData connection but I am getting the error HTTP status 400: Bad Request in Visual Studio whilst ...
1
vote
0answers
1k views

REST Query based on Expanded columns in Choice field (Listdata.svc)

I have a SP2010 client side app making REST calls. I have a large list that I would like to make a filtered query using the value of a none or many choice field called 'displays'. I have no access to ...
1
vote
1answer
607 views

Datetime format when using $filter in ListData.svc

I'm using ListData.svc to retrieve items from a SharePoint 2013 calendar list. I have two jquery ui datepickers to select the date range. Values are read with the following: var s = moment(jQuery('....
1
vote
2answers
913 views

MultiChoice doesn't show up in REST service Content Types

I've added a multichoice column to a content type, and when I call listdata.svc and look inside of the content types and find the one I want, the multichoice column isn't there. When I change the ...
1
vote
0answers
621 views

InfoPath using ListData.svc/somelist?$filter xxx return 500 Internal Server error

In my Case, In the InfoPath form ,the user click a button to get the data collection from listdata.svc. When I try connect http://testingsite/_vti_bin/listdata.svc . It works When I try connect ...
1
vote
1answer
2k views

Updating Choice Person/Group columns using listData.svc in SharePoint 2010

I am trying to use JQuery and the listData.svc to update a list that has a choice column. I am using Postman to generate my http requests, can someone please show me examples of how to update choice ...
1
vote
0answers
404 views

Load full list XML into JavaScript variable via CEWP

Currently I am using the lists.asmx webservice to POST a soap envelope and return specific list items. I really want the whole contents of the list. I realize how large that might get, but if this ...
1
vote
0answers
339 views

Rules for Transforming List Column Names into XML Element Names

I am using the ListData.svc service to pull data from several lists. Many of the column names have punctuation and spaces, so their names are transformed as they're rendered as Atom in the ListData ...