---
schema_version: "1"
id: 0a2cf59314aa30ac4551d4b76e897017d8c1553a714394e7b89bc48e03c58df2
title: Create Custom Actions for the Field Service Classic Dispatch Console
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/service/264-0-0/pfs_create_custom_actions.md
canonical_url: https://help.salesforce.com/s/articleView?id=service.pfs_create_custom_actions.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: c3215daeb6fd0bc58e0ba27b460a08bb6eb2f7cc83f71aba687c0eb3a3423493
description: Put the right actions at your dispatchers’ fingertips by adding custom actions to the Classic Dispatch Console. Custom actions can either call an Apex class or open a Visualforce page, and can be run on records in several areas of the Classic Dispatch Console. To keep the Classic Dispatch Console tidy, actions are shown in dropdown action lists with icons.
products:
  - Field Service
release: "264"
---
# Create Custom Actions for the Field Service Classic Dispatch Console

Put the right actions at your dispatchers’ fingertips by adding custom actions to the Classic Dispatch Console. Custom actions can either call an Apex class or open a Visualforce page, and can be run on records in several areas of the Classic Dispatch Console. To keep the Classic Dispatch Console tidy, actions are shown in dropdown action lists with icons.

### 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;">Available in: both Salesforce Classic (not available in all orgs) and Lightning Experience</td></tr><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">The Agentforce Field Service and Operations core features, managed package, and mobile app are available in <strong>Enterprise</strong>, <strong>Unlimited</strong>, and <strong>Developer</strong> Editions.</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <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="d59124e72">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">To define, edit, delete, set security, set version settings, and run tests for Apex
              classes:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">Author Apex</td>

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

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">Customize Application</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">To create custom permissions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">Manage Custom Permissions</td>

          </tr>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">To add custom actions to the Classic Dispatch Console:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d59124e72 ">FSL Admin permission set</td>

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

![Package icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/support_field_service/images/fs_package.png) _This is a Field Service managed package feature._

You can add custom actions to several areas in the Classic Dispatch Console:

- Individual or multiple appointments in the appointment list
- Individual or multiple appointments in the Gantt
- Individual service resources or resource absences in the Gantt
- Polygons on the map (the action runs on the appointments within a polygon)

For example, create an action that does one of the following things:

- Calls an Apex class that reassigns all selected service appointments to a different service resource
- Opens a Visualforce page where the dispatcher can update the Earliest Start Permitted on all appointments within a polygon—for example, if the polygon represents a flood in the service territory

1. Decide what you want your action to do and where it appears on the Gantt.
2. Create an Apex class or Visualforce page to connect to an action.
    
    Apex classes or Visualforce pages intended for custom Classic Dispatch Console actions must be configured a certain way. For details, see [Code Samples: Custom Classic Dispatch Console Actions](https://developer.salesforce.com/docs/atlas.en-us.field_service_dev.meta/field_service_dev/fsl_dev_code_samples_dispatcher.htm).
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-service-support_field_service-264-0-0-production-enus/3f7dceb9-dd70-454a-b49e-bbb4526a158d/images/icon_important.png)
    
    Important
    
    - Including flows or Lightning web components via Lightning Out in Visualforce pages isn’t supported. See [Lightning Out Considerations and Limitations.](https://developer.salesforce.com/docs/platform/lwc/guide/lightning-out-considerations.html)
    - Using iframes in Visualforce pages isn’t recommended. It can cause Content Security Policy (CSP) violations.
3. Create and assign a custom permission to limit who sees the action, or select an existing permission to use.
4. From the App Launcher, find and open the **Field Service Admin** app. Click the **Field Service Settings** tab, and then click **Dispatcher Console UI** > **Custom Actions**.
5. In the left-hand column, select an action category to define the location and breadth of the action.
6. Click **New Action** and enter your details.
    - **Label in Classic Dispatch Console**: Enter the action label that dispatchers see in the Classic Dispatch Console.
    - **Action Type**: Select Apex Class or Visualforce.
    - **Apex Class**: If you selected Apex Class as the type, select the Apex class that you want the action to call.
    - **Visualforce Page**: If you selected Visualforce as the type, select the Visualforce page that you want the action to open.
    - **Required Custom Permission**: Select the custom permission that users must have to see the action.
    - **Icon**: Select an icon to display next to the action label.
7. Click **Save**.
8. Optionally, reorder the actions in the action category you selected. Custom actions appear in this order in an action list after standard actions.

When you create or edit a custom action, the Gantt must be refreshed for the changes to take effect.