I'm trying to do this:
queryable.Where(i => i["_template"] == templateId);
Where templateId
is a Guid string, but it doesn't work. However, this does work:
queryable.Where(i => i["_templatename"] == templatename);
What do I need to do in order to filter by ID?
P.S. I realise I can use the typed template ID property, but I need the field name to be dynamic.