How to get "where used" status of component, component template, page template , schema etc. as "true" or "false" using tridion core service.I am currently using
UsingItemsFilterData filter = new UsingItemsFilterData();
filter.ItemTypes = new[] { ItemType.Page};
IEnumerable<XNode> nodes = Client.GetListXml(componentUri, filter).Nodes();
The above code returns the actual where used items details, instead of "true" and "false".It has following drawbacks.
- I just need the status as "true" and "false" . As the complete data is returned, it is very slow
- If the returned data is too much. I get a "Query Timeout" error at Tridion database layer. Following stored procedure
SQLUtilities.OpenRecordsetByStoredProcedure
gives this error.
Please provide a method which just returns where used status.