Adding a "Create Article" button to the Coveo Insight Panel Classic Component

In your Coveo Insight Panel Classic Component, you can add a button to create a knowledge article directly from a case.

  1. Ensure that you have Salesforce Knowledge enabled and that you’ve created a Coveo Insight Panel Classic Component (see Enable Salesforce Knowledge and Integrate a Coveo Insight Panel Classic Component).

  2. Ensure that you’ve allowed users to create an article from a case.

    1. In Setup, search for and select Knowledge Settings (Build > Customize > Knowledge > Knowledge Settings).

    2. At the top of the Knowledge Settings page, select Edit.

    3. Under Case Settings, ensure that the Allow users to create an article from a case checkbox is checked.

    4. Save your Knowledge Settings.

  3. In the Salesforce Console, inside the Insight Panel, select Customize Panel.

    39357308
  4. In the UI View tab, under your tabs, hover over the Create Article button, and click Edit.

    39357310
    Note

    If you don’t have this button, you need to enable it. To do so, select Code View at the top of the screen, and add the following element inside the <div class="coveo-box-settings"> element.

     <a class="CoveoBoxCreateArticle" target="_blank">
     </a>

    After saving and clicking back on Customize Panel, the Create Article button should be there.

  5. In the Box Create Article Option window, clear the Hidden checkbox.

  6. In the same window, consider changing the article types to display to the user. By default, all of your article types are available.

    Example

    You have three articles types in your Salesforce organization, labeled Knowledge, Documentation, and Troubleshooting Guide. You only want to display the Knowledge and Troubleshooting Guide options to your users.

    Under Article type filter, you enter the appropriate objects corresponding to those article types, separated by commas.

    39357312
  7. Once satisfied with your modifications, select Apply.

  8. Save your Insight Panel.

You should now see the Create Article button inside the panel.

39357313