--- title: Add the Create Article button slug: '3127' canonical_url: https://docs.coveo.com/en/3127/ collection: coveo-for-salesforce source_format: adoc --- # Add the Create Article button In your [Coveo Insight Panel Lightning Component](https://docs.coveo.com/en/1028/), you can add a **Create Article** button ([edit]) to create a Knowledge article directly from a case. > **Note** > > This button can be used to create any record type. ## Prerequisites Before adding the **Create Article** button, perform the following tasks: * [Enable Knowledge Users](https://help.salesforce.com/articleView?id=admin_knowledge_user.htm&type=5) * [Enable Salesforce Knowledge](https://help.salesforce.com/articleView?id=admin_knowledge_setup.htm&type=5) * [Enable Lightning Knowledge](https://help.salesforce.com/articleView?id=knowledge_lightning_enable.htm&type=5) ## Add the Create Article button . Access your Coveo Insight Panel Lightning Component. . At the upper-right corner of the component, click icon:settings-filled[alt=settings-filled,width=16], and then select **Edit**. . Click the **Code View** tab. . Depending on your Coveo for Salesforce version, add the following code: * **Coveo for Salesforce v4.6 or higher** The following code must be added inside the `coveo-actionbutton-section` element. ```xml ``` For example: ```xml
``` * **Coveo for Salesforce v3.41 to v4.4** The following code can be added anywhere you want. ```xml
``` . Click **Save**.