Tag Info

Hot answers tagged

7

unfortunately, afaik (& tested) the REST services are only working for authenticated users. You'll need to create a bridge service calling with credentials the native ones if you want to provide that functionality but since you're authenticating your request, are you sure it's not an authentication issue ? Does the target username / password combination ...


4

Choice fields are returned with a Value without the need for expansion: Example: IP_WorkflowStatus = IP_WorkflowStatusValue Here is an example of a query without using expansion: $filter=IP_WorkflowStatusValue eq '2-Validated' If you want to use expansion, then you need to use expanded field notation Relation/Field: $filter=IP_WorkflowStatus/Value eq ...


3

The $skip parameter does not work in SharePoint 2013 for list items. It only works for collection of data (like list collections, ecc..). See my comment at the end of this article: http://msdn.microsoft.com/library/d4b5c277-ed50-420c-8a9b-860342284b72.aspx


3

You will need the Id of the Employee whose children you want to fetch. Syntax: https://[My SharePoint]/_api/web/lists/MyList/items?$select=ChildName&$expand=FieldValuesAsText/Employee&$filter=Employee eq 1 This will return the 'ChildName' field of all items in which the user with Id 1 occurs in the 'Employee' field Update: For getting the Id of ...


3

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: ...


2

When updating a list item you should use the uri from the metdata of the list item you want to edit results[i].__metadata.uri. $(document).ready(function () { var defaultClient = OData.defaultHttpClient; var spClient = { request: function (request, success, error) { request.headers = { "Accept": "application/json;odata=verbose", ...


1

You could also filter fields by SPField.CanBeDeleted property in order to get the list of questions from a Survey List How to get the list of questions from a Survey List via REST API /_api/Web/Lists/getByTitle('Survey')/fields?$filter=(CanBeDeleted eq true)


1

The way the SharePointOnlineCredentials must be used differ from a client app versus web service - i believe this example explains it http://tomaszrabinski.pl/wordpress/2013/03/18/connecting-to-office-365-using-client-side-object-model-and-web-services/


1

If you build your project as a SharePoint 2013 App you will not need to have SharePoint installed on your development machine. You will get intellisense and debugging support (even when writing JavaScript). If you're not familiar with App development I suggest you check out Apps for Office and SharePoint on MSDN.


1

This article on MSDN shows some examples of using jQuery.ajax calls: http://msdn.microsoft.com/en-us/library/jj164022.aspx Here is a good blog as well: http://blog.concentra.co.uk/2013/02/06/odata/ The only gotcha at all with calling the SharePoint 2013 REST API is that if you are doing anything other than GET, you have to add the custom X-RequestDigest ...


1

I have never been able to get this to work with the ListData.svc. I always get errors regarding slug headers or something else. For example sending a post to the Shared Documents URL with the following payload: { "ContentTypeID":"0x012000BBD736485259BF4582A1FE518D692108", "Name":"TestFolder2", "Title":"TestFolder2", "ContentType":"Folder" } ...


1

Have you tried this approach: //Create Folder name MyFolder inside a doc library MyLib //Reference to Lists.asmx proxy ListsWebService.Lists listWebService = new ListsWebService.Lists(); string xmlCommand; XmlDocument doc = new XmlDocument(); xmlCommand = "<Method ID='1' Cmd='New'><Field Name='FSObjType'>1</Field><Field ...


1

You can disable the Access permission to remote interfaces to the anonymous users, follow this: Navigate to the site (or sub-site) where you wish to enable anonymous access. Go to Settings - Site settings. Under Users and Permissions, click on Site Permissions. Under the Permissions tab, click on Anonymous Access. Choose whether you want ...


1

SharePoint 2013 has excellent features directed towards web content management, so apps doesn't really come to play here (unless you have some integration tasks you want to do). On top of the (lacking) WCM features we not have support for nicer URLS (good for SEO), alot better support for content publishing from intranet or staging environment, HTML5 ...


1

Unfortunately, the REST API with Javascript will not give you the recurring calendar items. If you want to retrieve the recurring calendar items with client side code, you need to take a look at SPServices: http://spservices.codeplex.com/ Take a look at this thread: http://spservices.codeplex.com/discussions/254560


1

It is not supported for multiselect fields (i.e. fields represented in the normal UI as check boxes). The following quote is for 2013 but the same rules apply for the ListData.svc. You can filter on the client side, though, depending on how you represent the data and the controls you use. Queries for multi-value lookup fields and users Because ...



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