Pages

Thursday, 13 February 2014

Cross Category Group Knowledge Article Visibility

When implementing Salesforce knowledge, articles can be associated with data categories, which are contained inside data category groups.  You can define up to three active data category groups, and an article can be associated with up to 8 categories per category group.

What might come as a surprise, is the requirement for an article to be visible if it is associated with categories in more than one group.

Consider the following setup of a knowledge base for Bob Buzzard Inc, providing information on Salesforce1 for my developers:

Screen Shot 2014 01 18 at 11 42 39

I have an article on adding a Visualforce mobile card to a page layout that is associated with the Mobile Cards data category, which my developers have access to through their profile, which includes all categories in the group:

Screen Shot 2014 01 18 at 11 47 18

A developer can then see the article via the Knowledge One tab:

Screen Shot 2014 01 18 at 12 08 31

I then set up another data category group for Administrators:

Screen Shot 2014 01 18 at 12 04 47

as my developers and administrators are quite protective of their roles and responsibilities (will they ever get along :), so developers have no access to the admin data category:

Screen Shot 2014 01 18 at 12 06 04

It then strikes me that the article about configuring a Visualforce mobile card would also be of interest to admins, so I add it to the Mobile Cards category in the admins group:

Screen Shot 2014 01 18 at 12 10 16

Once I’ve published this, the developers are straight on the phone complaining that they can no longer see the article:

Screen Shot 2014 01 18 at 12 14 13

all they can see is the test article.

Poring over the knowledge implementation guide presents the following explanation:

"A user can see an article if he or she can see at least one category per category group on the article."

In this case, as my developers can’t see a category in the admins category group, they can’t see the article any more.

Unfortunately, there will be an uprising if I give the developers access to the admin Mobile Cards category, so that isn’t an option for me.  The workaround that I came up with was to add a fake “shared” category to the admins category group:

Screen Shot 2014 01 18 at 12 28 18

and associate the article with this category:

Screen Shot 2014 01 18 at 12 29 43

and finally give my developers access to the shared category:

Screen Shot 2014 01 18 at 12 31 20

Now my developers can see the article again:

Screen Shot 2014 01 18 at 12 32 53

The downside to this is that I’ve burnt two data categories out of my allowance of eight in the admin data category group, and I have to replicate the “shared” category in the developers data category group to allow the admins to see the article.  While its not overly onerous, it still strikes me as odd.  If you agree, please vote up my idea to allow users access where they have access to any category, regardless of group, associated with the article:

https://success.salesforce.com/ideaView?id=08730000000kzqPAAQ

Author’s note: all talk of Salesforce Admins and Developers not getting along is artistic license to ensure that I had to use my workaround.  In reality its one big love-in.

No comments:

Post a Comment