I have code like this
this.GetContentDeliveryService().Templates.Where(template => template.ItemId == presentationItem.Template.ItemNumber).FirstOrDefault();
which fails to find the desired template, even though I know it is in the system, because I can find it at
The template is not being returned in my result set because OData by default returns only 25 items. I have looked around and it seems like it is possible to get around this by either a) changing the max result size config on the server side, or b) using a URL query syntax with "$top" to control the number of items returned (both explained here). Neither of these options are good, because I can't change the server-side configuration, and I also don't want to query a huge number of items to sift through.
I know exactly the tcm of the template I am interested in - with this information, isn't there a way of querying OData to return a strongly-typed object? I have looked around but have not found such a thing.
Syntax like this looked promising:
http://blah.net/odata.svc/QueryComponentPresentations?$filter=(id eq 'tcm:18-3260-32')
except that I couldn't get it to work in the browser, let alone get it to return a strongly-typed object in code.
Given a template's tcmid, do you know how to query OData for just that item, and get a strongly-typed object in return?
Thanks in advance...