I got a list in Sharepoint 2010 with a choice column. The choices are checkboxes.
How do I query the choice column using the rest api?
I've tried using
http://sp2010/_vti_bin/listdata.svc/mylist?$filter=myChoicesColumn/xxx eq something
and then I get
No property 'xxx' exists in type
'System.Collections.Generic.IEnumerable`1[[Microsoft.SharePoint.Linq.DataServiceEntity,
Microsoft.SharePoint.Linq,
Version=14.0.0.0, Culture=neutral,
PublicKeyToken=71e9bce111e9429c]]' at
position 6.
What property should I use?
Best Answer
None of these answers will work for SP fields that are of type multiselect (i.e. fields represented as checkboxes).
If you try the following filter on a multiselect choice field called "Grouping" like this:
$filter=Grouping/Value eq 'My Value'
You will get the error:
Maybe
Value
isn't required? You still get an error. In SP 2013 the MSDN documentation states that querying a multiselect choice is not possible. So I can only assume that the same is true for the 2010 REST API, which is hardly documented at all.http://msdn.microsoft.com/en-us/library/fp142385(v=office.15).aspx