6

(SELECT Id, ParentId, DataCategoryGroupName, DataCategoryName FROM Info_Hub__DataCategorySelection).

In this i did not find complete list of data categories. I want to list up all data categories using query. How can I do?

enter image description here

1 Answer 1

1

You cannot query on DataCategories using SOQL, you must forcibly specify the Article Type in order to retrieve the assigned DataCategories of each record for that type.

Example:

SELECT DataCategoryName FROM knowledge__DataCategorySelection

this is documented here

You will most likely have to use an apex class to achieve what you want as mentioned in someone elses post

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .