You need to sign in to do that
Don't have an account?
yoshinaga
Does anybody know how to query data categories used by Answers in Apex?
I am building a Force.com site. and I need to query the data category used in Answers.
with salesforce.schema I confirmed that the data category group infomation can be queried from QuestionDataCategorySelection.
But It looks like no any table provide the categories info in that group.
Does anybody know how to query data categories used by Answers in Apex?
I have got the answer in APEX reference.
To get information about data category, rather than using SQQL ,we have to achieve schema information as followings
describeCategoryStructureResult =
Schema.describeDataCategoryGroupStructures(pairs, false);
For details, please consult "Understanding Apex Describe Information" on "Dynamic APEX".