0
votes

I'm tring to get a list of items from sharepoint 2010 list with specific IDs . I'm using the following query Query in javascript /_vti_bin/listdata.svc/Absences?$select=AbsenceDate,AbsenceTime&$filter=indexof(Id,'67|68|') ne -1

I just want to get bacjk rows 67 and 68.

I get an error back saying No applicable function found for 'indexof' at position 0 with the specified arguments. The functions considered are: indexof(System.String, System.String).

any Ideas?

1

1 Answers

0
votes

This article is excellent regarding how to use filters:

Basically you want to perform an OR-Query, like this: /_vti_bin/listdata.svc/Absences?$select=AbsenceDate,AbsenceTime&$filter=(Id%20eq%20'67')%20OR%20(Id%20eq%20'68')