2

Problem description:

I have a picklist for data categories which I am generating dynamically from apex code, currently because I'm doing it from code using Schema.describeDataCategoryGroups and Schema.describeDataCategoryGroupStructures I get all data categories and sub categories, but each user can see different categories set by his profile Data Category Visibility.

Solution help needed:

I am searching for a way to map data categories relatively to user Data Category Visibility in his profile, so I can populate pick-list values properly. In order to do it I need a way to get the Data Category Visibility of each profile.

1

When using getTopCategories() you get it by user profile visibility: "Returns a Schema.DataCategory object, that contains the top categories visible depending on the user's data category group visibility settings."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.