I am rewriting the .NET backend application to use the Tridion 2011 CoreService. There's one part where he gets a folder in Tridion that uses a specific keyword. In the current setup, this is done by calling the GetListClassifiedItems method on the keyword itself, but how can I do this using CoreService?
There is ClassItemsFilterData strong> in the CoreService API , but how to use it?
I tried this piece of code:
ClassifiedItemsFilterData filter = new ClassifiedItemsFilterData()
{
ItemTypes = new ItemType[] { ItemType.Folder }
};
XElement list = client.GetListXml("tcm:113-363331-1024", filter);
but it will only return the keyword, with the tcm URI: 113-363331-1024, and not the folders that were assigned to it.
If I add the ItemType component to the filter, I get all the components that were assigned to this keyword, but still not the same folder.
?