Activity Forums Salesforce® Discussions Display an error when user is not logged into the community and Is Visible In Pkb == false in Knowledge Article Version in Salesforce

  • Display an error when user is not logged into the community and Is Visible In Pkb == false in Knowledge Article Version in Salesforce

    Posted by Manjunatha on June 18, 2019 at 1:00 PM

    I want to display an error on accessing knowledge articles when IsVisibleInPkb == false in Knowledge Article Version object and the user is not logged in.

    As I am new to Salesforce, Please let me know how to achieve this?

    Jogender replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Jogender

    Member
    July 31, 2019 at 12:44 PM

    If the PKB checkbox is checked on the Knowledge Article, it means the Knowledge Article will be visible to unauthenticated users. So if in your case IsVisibleInPkb == false then the Knowledge Article should not be visible to the user if he or she is not logged into the community.

    So there should not be any need to display the error if the Knowledge Article is not at all visible to the user. Hope this makes sense.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Skip to toolbar