Closed TBag closed 9 years ago
Hi @TBag . I'm currently OOF, but I'll be back next Monday. Regards
OK, thanks for the heads up.
@TBag sorry about the delay, had to recover from a small surgery first.
I tried to reproduce the defect and if you want to use filter, you shouldn't use parameter. Use instead:
Query query = new Query().select(select)
.field("sl_inspectionIDId").eq(inspectionId)
.field("sl_incidentIDId").eq(incidentId)
.field("sl_roomIDId").eq(roomId)
.top(top)
.orderBy("Modified", QueryOrder.Descending);
and the result is the following one:
https://somehost.sharepoint.com/test/_api/web/lists/GetByTitle('somelistname')/Items?$filter=sl_inspectionIDId+eq+(10)+sl_incidentIDId+eq+(20)+sl_roomIDId+eq+(30)&$top=5&$orderby=Modified+desc&$select=Id
Let me know if this works for you. Thanks
Hi Marcos,
That code you suggested works well. Thanks.
The SDK generates incorrect URLs when filters are applied to a SharePoint list query. The following code demonstrates this issue.
The SDK generates this URL:
The problem is the filter parameters do not follow the $filter= parameter.
The correct URL should look like this: