使用Core Service获取文件夹中的项目

use*_*958 -3 tridion tridion-2011

使用Tridion Core Service,如何获取文件夹中的所有项目?

Nun*_*res 14

You need a filter (OrganizationalItemItemsFilterData).

Then you need to call client.GetList(folderId, filter) to get the list of items in that folder.

OrganizationalItemItemsFilterData filter = new OrganizationalItemItemsFilterData();
foreach (XElement element in client.GetListXml("tcm:3-640-2", filter).Nodes())
{
    Console.WriteLine(element.Attribute("ID").Value);
}
Run Code Online (Sandbox Code Playgroud)