---
schema_version: "1"
id: c1d7c27be4e684aa9fbbc96a46346d21c7dad09e38e904c85ada8db7bf1f842a
title: Salesforce Knowledge Actions Supported in Macros
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/macros_supported_knowledge_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.macros_supported_knowledge_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d6dd4febe00af44f1d7e2a5474d5cbb7ef8dcc0a25ec2c74c295962d28ae8634
description: These actions are available when you click Select Knowledge Sidebar Component in the macro instructions. Knowledge actions let you search for knowledge articles and add articles to cases. You can create and run macros to perform these actions on the Salesforce Knowledge Publisher in the Salesforce Console for Service.
products:
  - Service Cloud
release: "264"
---
# Salesforce Knowledge Actions Supported in Macros

These actions are available when you click **Select Knowledge Sidebar Component** in the macro instructions. Knowledge actions let you search for knowledge articles and add articles to cases. You can create and run macros to perform these actions on the Salesforce Knowledge Publisher in the Salesforce Console for Service.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=service.service_editions_reference.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

To use these actions, you must have Salesforce Knowledge enabled in your organization and added as a console component. Salesforce Knowledge actions, such as attaching an article to a case, must be enabled in the console. The Knowledge Sidebar must be expanded when you run a Knowledge macro. If the sidebar is collapsed, the macro doesn’t work.

Internet Explorer 7 and Bulk macros are not supported for Salesforce Knowledge actions.

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small " summary="Salesforce Knowledge Actions Supported in Macros">
        <caption>Salesforce Knowledge Actions Supported in Macros</caption>
        <colgroup>
          <col style="width:16.666666666666664%">
          <col style="width:66.66666666666666%">
          <col style="width:16.666666666666664%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d193685e74">Action</th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d193685e77">Description</th>
            <th scope="col" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" id="d193685e80">Supported in Bulk Macros?</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Select Knowledge Sidebar Component</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Tells the macro that these instructions affect the Knowledge Sidebar in the console. </td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Select Article Search</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Tells the macro that the instructions affect Knowledge search.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Set Keywords</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">
              <p>Specifies the keywords to use when searching the knowledge base. You can search by:</p>
              <ul>
                <li>Article number: The article number retrieves an article by its number, which is useful
                  when you want to select a specific article. The syntax is
                  <kbd>articlenumber:123456789</kbd>.
                </li>
                <li>Keywords: You can search by keywords. The Salesforce Knowledge search looks for these
                  keywords in the title and body of the articles in the knowledge base. For example, the
                  phrase <kbd>Reset Your Password</kbd> returns articles that contain that
                  phrase.</li>
              </ul>
            </td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Run Search</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Tells the macro to search the knowledge base using the criteria specified in the Set
              Keywords instruction.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Select Most Relevant Article</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Selects the first article listed in the search results.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Attach to Case</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Attaches the article to the case.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Attach to Email as PDF</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Adds the article as a PDF attachment to the email in the case.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
          <tr class="">
            <td data-label="Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e74 ">Insert into Email as HTML</td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d193685e77 ">Inserts the article text and links into the email in the case.</td>

            <td data-label="Supported in Bulk Macros?" class="slds-cell-wrap" style="text-align:center;vertical-align:top;" headers="d193685e80 ">No</td>

          </tr>
        </tbody>
      </table>