13

Sharepoint Client OM uses Client.svc WCF service to communicate with SharePoint Server. Client.svc service uses Server OM as per client request and return result to the client in JSON format. So your 2nd point is correct clientside object model or javascript model internally makes calls to the clients.svc. Serverside side object model does not use client.svc....


12

This page has some good examples on using listdata.svc and specific examples on drilling down into specific items to be selected. Using the REST Interface Examples from page Using code: var query = (DataServiceQuery<InventoryLocationsItem>)context. CreateQuery<InventoryLocationsItem>("InventoryLocations") .Expand("Part") ....


12

ListData.svc - only if list data is needed Client.svc - List data and oData operation The "_api" is friendly name, since it's easier to read. The old SharePoint 2010 /_vti_bin/ListData.svc is still there in SharePoint 2013, and is handy if only List data is needed. In SP2010 - /_vti_bin/ListData.svc In SP2013 is replaced From: /_vti_bin/Client.svc To: /...


10

This took forever to figure out, but of course it is simple once you got it. Instead of pasting a bunch of code, here is the context and then the raw HTTP POST request that I ended up with. The documentation is actually right here: http://msdn.microsoft.com/en-us/library/dd962796(v=office.12).aspx Syntax for the slug header is as following: /<...


8

i also got it and solved .. temporarily turn off anonymous authentication on the web application... this can be done as... Open Internet Information Services (IIS) Manager: If you are using Windows Vista or Windows 7: On the taskbar, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Internet Information ...


6

Per Jakobsen has a very nice solution. You don't need to "muck up" anything, Chris! The only thing I have to add is to show how the REST url can be automated. Look at this: var date = new Date(), //or some relevant date filterFormat = "$filter={0} gt datetime'{1}'", filterQuery = String.format(filterFormat, "Created", date.toISOString()), url = "...


6

Well, I am not absolutely sure, but I think the answer is: there is no way to skip metadata property. You may of course create a kind of proxy by implementing a custom web service which itself consumes listdata.svc and truncates the __metadata property? But it doesn't sound good to me. You can of course skip all other unnecessary properties by defining the ...


5

The authentication under _vti_bin should be only 'Windows' and not 'Anonymous'. So you need to change it from IIS. Reason : The mex endpoint uses mexHttpBinding which is configured to use Windows Auth in web.config ( in 14\ISAPI folder); <binding name="mexHttpBinding"> <security mode="TransportCredentialOnly"> <...


5

First of all, SP.ListItem.attachmentFiles property is not available in SharePoint 2010. The following REST query returns all attachments in a List in SharePoint 2010: http://<sitecollection>/<site>/_vti_bin/ListData.svc/Requests?$select=Attachments&$expand=Attachments


5

I suppose _vti_bin/ListData.svc and _vti_bin/client.svc (_api) endpoints have different logic for permission checks. I can reproduce your problem, while logged as a site admin I can access the list, but not as a normal user: _api/web/lists/getbytitle('User Information List') What I also have found in the result, is a new (third) link to that hidden list: ...


4

I have finally pinned it down. It turned out to be the feature of SharePoint's REST. I needed to take UI language into consideration! For instance, in case of en-us locale the REST query should look like this: ?$filter=endswith(Path,'FolderName') But in ru-ru it becomes: ?$filter=endswith(Путь,'FolderName') Moreover, you need to escape Russian ...


4

You can use $filter query string and a property called "Path" like /_vti_bin/Listdata.svc/myList()?$filter=endswith(Path, 'Folder001') to get only the items from the Folder001


4

I'm not sure exactly what you're trying to do, but you can't expand a parent site's list from a sub-site via the REST interface. The way that SharePoint goes about getting the additional data via the REST service assumes that the list exists in the same context, not a parent site. This means that, although the fields look identical in the initial XML, the ...


4

To add an item to the array you send a POST to the URL of the item you wish to update: dev.domain.com/sites/plm/_vti_bin/ListData.svc/MarketNeed(1) with the following payload: { "Grouping": [ { "__metadata": { "uri": "http://dev.domain/sites/plm/_vti_bin/ListData.svc/MarketNeedGrouping('Special%20Kitting')", ...


3

The syntax is like this $filter=Created%20gt%20datetime'2012-01-01T00%3A00%3A00' (for > Jan. 1st 2012)


3

Spaces are trimmed and the special characters are omitted Parts Released? becomes PartsReleased and if anyone suspects this is the fields internal name, the ListData.svc does not use internal names. The internal name is completely different.


3

To remove one user from the multi-valued lookup you send a delete to http://dev-02/_vti_bin/listdata.svc/TestList(1)/$links/AssignedTo(5) where 5 represents the ID of the user you wish to remove from the lookup field. If you want to add a user to the multi-valued field you send a post to http://dev-02/_vti_bin/listdata.svc/TestList(1)/AssignedTo with the X-...


3

Your question implies that you already know the specific item. That makes it easier to isolate the data you want. Each of the lines shown will return a text response as shown below assuming that these are not "special" fields like choice, lookup, etc. This URL will return christophe http:/.../_vti_bin/listdata.svc/Contacts(2988)/Contact/$value This URL ...


3

The service needs to be AJAX enabled to generate a javascript proxy for you. Lists.asmx is not AJAX enabled. [WebServiceBinding(ConformsTo=WsiProfiles.BasicProfile1_1), WebService(Namespace="http://schemas.microsoft.com/sharepoint/soap/")] public class Lists : GenericService, ISoapServiceLists, ISoapServiceListData, ISoapServiceListSchema, ...


3

Both field names and List names in SharePoint 2010 RESTare case sensitive. Internal names of fields don't work. What works for fields is that you have to preserve casing and remove any spaces in the display name. For example if the dispaly name of the field is "company Employees", then the field name in REST will be "companyEmployees". Similary for Lists you ...


2

Dare i ask why you wouldn't just use SPServices (created by @sympmarc), an open source jQuery plugin that wraps methods in the OOTB SharePoint Web / WCF Services, making the use of these services in JavaScript as simple as the following example: $(document).ready(function() { $().SPServices({ operation: "GetListItems", async: false, listName: "...


2

I had exactly the same situation and have solved it. I got to the solution by looking through the JSON returned by the service during a GET call for all list items on a list which included a Lookup column to another list. When there is a Lookup column returned, you always see the name of the column, with a __deffered field attached to it, with a uri to the ...


2

Here are the rules for working with List field names and List names in REST. Preserve casing, remove spaces and keep the first letter of each individual word as Capital. For example a field with display name "home aDdress" will be "HomeADdress". If a special character like dot is in field name or List name it is to be treated like space i.e. ...


2

Listdata.svc service usage requires an authenticated connection. For your public site, I do recommend implement your custom service (be it a simple asmx service, rest service, wcf service) or create a custom generic handler (eg: listdata.ashx) that will return, in a similar fashion to what you would receive from listdata.svc the expected content. You can ...


2

Does the list have any calculated columns? If so then PowerPivot cannot connect to such list


2

The REST interface uses flexible URL conventions for querying data, which enable you to filter, sort and select information from SharePoint Foundation lists directly from the browser. The ListData.svc is for getting information from lists and libaries not for getting a list of sites. Link to MSDN


2

Yes you can achieve this , and you will need to do enhancement the same . http:///_vti_bin/listdata.svc/Tasks?$filter=Team eq 'Team3' http://www.c-sharpcorner.com/uploadfile/anavijai/rest-api-in-sharepoint-2010-for-listdata-svc-part-1/


2

Both of these can be done with views using Group Bys. Create a view called ByPeriodPerson and in the Group By section of the view definition, select Period first group by the column and then select Person for the second group by the column. The resulting view will display a distinct set of Periods - when you expand each period you will have a distinct set ...


2

I was having this same issue on two particular lists on our SharePoint 2010 site. I read some posts that mentioned it could be caused by lookup fields, but neither problem list had such fields. Other posts mentioned people/person fields, I had them but I ruled that out as well. So I turned to the calculated columns in my list. I had three. I set each one ...


2

The SP2010 Search API is not exposed in the REST endpoints or in the javascript CSOM but you can get to it via SPServices. Take a look at this blog post, it should give you what you need: http://www.itidea.nl/index.php/example-of-using-the-spservices-search-web-service/ The search results come back in XML so you'll need to do some XML traversal in your ...


Only top voted, non community-wiki answers of a minimum length are eligible