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')
However, startswith
does not seem to work with inbuilt Id field. Following REST queries do not work:
http://aissp2013:111/_vti_bin/ListData.svc/ChangeRules()?$filter=startswith(Id,1)
http://aissp2013:111/_vti_bin/ListData.svc/ChangeRules()?$filter=startswith(Id,'1')
But querying the Id field using eq
works:
http://aissp2013:111/_vti_bin/ListData.svc/ChangeRules()?$filter=(Id eq 1)
Is there any way of making Id work with startswith
?