---
schema_version: "1"
id: bf795e076337d7d20eba49d38a8f11ef13d316e5ee168ff1c42e1377846bcf3b
title: Create Macros in Salesforce Classic
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/macros_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.macros_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fb952e88d144dc02af24287b31e93c6ee0172840d38c9c4b6d0be327f20375d4
description: To create macros in Salesforce Classic, use the macro widget.
products:
  - Service Cloud
release: "264"
---
# Create Macros in Salesforce Classic

To create macros in Salesforce Classic, use the macro widget.

### 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>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d165669e58">User Permissions
              Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">To view macros:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">Read on macros</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">To create and edit macros:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">Create AND Edit on macros</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">To create and run irreversible macros:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d165669e58 ">Manage Macros That Users Can’t Undo</td>

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

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support-264-0-0-production-enus/dd14551c-a772-4db6-9a1d-d84df8df2980/images/icon_note.png)

Note Macros in Salesforce Classic don’t support multi-select picklists. They also don’t support logical expressions that control instruction execution.

To create this example macro, the Email Publisher must be enabled in your Salesforce org.

1. Create a macro.
    1. In the Salesforce for Service Console, click the **Macros** widget.
    2. Click **\+ Create Macros**.
    3. For Macro Name, enter a name that makes it easy to understand what this macro does.
        
        For example, Replace email subject with “Steps for Resetting Your Password”.
    4. For Description, explain the purpose for this macro. The optional Description field helps support reps understand what this macro does and distinguish it from similar macros.
2. Add the instructions for the macro.
    1. Select a context for the macro. The context specifies the part of case feed that the macro interacts with.
        
        For example, selecting **Select Active Tab** tells the macro that it’s performing an action on the active case tab in Case Feed.
    2. Click **Done**. After every instruction, click **Done** to move to the next line.
    3. Select the object that the macro interacts with.
        
        For example, selecting **Select Email Action** tells the macro to interact with the Email Publisher in Case Feed.
    4. Select the action that you want the macro to perform.
        
        For example, suppose that you want to replace the subject line of an email in the case, so you select **Replace Subject**. This instruction tells the macro to change the subject field in the email. It also displays a text field, where you can specify the subject that you want to replace.
    5. In the text field, enter the subject line. This instruction clears the original subject and replaces it with the value you specified in the macro.
        
        For example, you enter Steps for Resetting Your Password in the text field. Suppose the customer’s original email contained the subject “Password Problems.” The support rep runs the macro, automatically replacing the original subject with the new subject.
    6. To tell the macro to execute these instructions, select **Submit Action**.
3. Save the macro.
    
    If you followed the example, you created a macro that replaces the original subject line in an email in Case Feed with a new subject line.

After creating a macro, it’s a good idea to run it to make sure that it works the way you want. To test this macro, go to the Salesforce Console for Service and open a case record. Open the Macros widget. Select and run this macro.

- **[Tips for Creating Macros](https://help.salesforce.com/s/articleView?id=service.macros_tips.htm&release=264.0.0&type=5)**  
    How you name and design your macro can impact its usefulness to support reps. Keep these tips in mind when creating macros.
- **[Examples of Macros in Salesforce Classic](https://help.salesforce.com/s/articleView?id=service.macros_examples.htm&release=264.0.0&type=5)**  
    These examples show how you can create different types of macros based on your business needs. Using a macro saves support reps time because it automates repetitive and routine actions, freeing them to focus on helping customers.

#### See Also

- [Prerequisites for Macros](https://help.salesforce.com/s/articleView?id=service.macros_getting_started.htm&release=264.0.0&type=5 "Before you create and run macros, ensure that your org meets the prerequisites for using macros and then add the macros widget or utility to your app.")
- [Keyboard Shortcuts for Macros](https://help.salesforce.com/s/articleView?id=service.macros_shortcuts.htm&release=264.0.0&type=5 "Use keyboard shortcuts to work even more efficiently with macros.")