The ServiceSDK docs suggest that we can provide the virtual data category “All”, which is visible in the portal, as the rootDataCategory for the SCSServiceConfiguration in the ServiceSDK. But when I provide “All” (as in the example code), I get an error that says “invalid data category group or data category”.

Here is the sample code from the docs:

// Create configuration object with init params
02  {{SCSServiceConfiguration *config = [[SCSServiceConfiguration alloc] }}
03     {{initWithCommunity:NSURL URLWithString:@}}{{"[https://mycommunity.example.com }}
04     dataCategoryGroup:@"Regions"
05      rootDataCategory:@"All"];

Is there a mechanism to make "All" work and get all of my root-level data categories into the Knowledge UX, or do I need to restructure our data categories such that we have a single root?

Here is the sample code from the docs; when I try this with our community it fails with an error "invalid data category or group". If I use any one of our defined data categories it works fine, albeit for just that single category.

  • It's comes from profile level. Make sure ur profile has "All" data category added.
    – Ayub
    Apr 13 '20 at 18:19
  • Yes; "All" was added. I think we have it working now; the issue was the default visibility was set to "None". Setting the visibility to "All Categories" seems to have done the trick Apr 14 '20 at 16:18
  • This is what I was asking to check. I will add as answer for more clarity to others.
    – Ayub
    Apr 14 '20 at 16:40

Visibility of data category is tightly coupled with Profile and Role. Usually, we develop solution and test using system admin account having all category access by default but when we test with non-admin profile we may fins issue because correct permission is not added on Profile or Role.

  1. First, if your User's role has access to data category then you will be able to access it without drilling down 2nd and 3rd points.
  2. If your user's profile has access to data category then you will be able to access it.
  3. If User is assigned to any permission set and that permission set has access to data category then you will be able to access it.

More detail is given here: https://help.salesforce.com/articleView?id=category_visibility_whatis.htm&type=5

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.