I have a list generated from a BCS oData provider and I am attempting to get the number of items in the list so I can generate a $top on my request rather than bring back only the 100 item generic limit.
I am trying the following query in the cross-domain SP javascript, but it returns 0 items.
Any advice?
executor.executeAsync(
{
url: appweburl + "/_api/web/lists/getbytitle('Vendors')/itemcount", method: "GET",
headers: { "Accept": "application/json; odata=verbose" },
success: countSuccessHandler,
error: errorHandler
}
);