How to get keywords inside a category?

How to get keys in a specific category using coreservice?

I am studying a class CategoryData, but I do not see any methods or properties related toKeyword

+5
source share
1 answer

Getting keywords inside a category is similar to getting components inside a folder. Therefore, you will need to call a GetListXmlcategory as a topic.

var filter = new OrganizationalItemItemsFilterData();
var category = "tcm:1-2-512";
var keywords = client.GetListXml(category, filter);
foreach (var keywordElement in keywords.Descendants())
{
    ...
}



Some background . Core Service is a service-oriented API, so none of the objects ...Datahave methods for loading additional information. Instead, all data access goes through CoreServiceClient, which then returns data objects that contain ... data.

, Java, DAO/DTO, : CoreServiceClient - DAO, ...Data - DTO.

+14

All Articles