---
schema_version: "1"
id: 9ca06bc3b37be829607e362525574ca55f3be32fa2002f2c0ef624de3f642b4a
title: Done Action (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_done_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_done_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6a76b921d3a07e84c369e5afc70c561895ebdab4c08a768932f8008ff8b29755
description: For the managed package runtime, the Done Action ends the Omniscript and returns the user either to where the script was launched or a custom URL. This page explains the settings to configure for the Done Action.
products:
  - Omnistudio
release: "264"
---
# Done Action (Managed Package)

For the managed package runtime, the Done Action ends the Omniscript and returns the user either to where the script was launched or a custom URL. This page explains the settings to configure for the Done Action.

![Managed Package app icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

Note

LWC Omniscripts do not support the Done Action. For information on how to navigate from an LWC Omniscript, see [Navigate Action (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_navigate_action.htm&release=264.0.0&type=5 "For the managed package runtime, navigate to various Salesforce experiences from Omniscript using the Navigate Action element.").

- **Option Source**:
    
    - To redirect to a Salesforce object, select **SObject**.
    - To redirect to a URL, select **URL**.
    - To redirect to an HTML template, select **Redirect**.
- **Source**:
    
    - If redirecting to an **SObject**, enter %ContextId% to redirect to the record from which the script launched.
    - If redirecting to a **URL**, enter the page and parameters. For example, MyTestPage?Id=%ContextId% would redirect to an internal page and http://www.vlocity.com will redirect to an external page.
        
        ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
        
        Note
        
        Beginning with Vlocity Summer '19, you can pass percentage signs in the URL by replacing the percentage sign in the URL with the variable $Vlocity.Percent.
    - Beginning with Vlocity Insurance and Vlocity Health Summer 2018, when redirecting to a Visualforce page **URL** from a Lightning container, use the ltng: prefix. For example, ltng:/apex/CustomVFPage will redirect to a Visualforce page.
    - Beginning with Vlocity Insurance and Vlocity Health Summer 2018, when redirecting to a Lightning or Lightning Community page URL, apply the ltngpage: prefix. For example, ltngpage:/Home will redirect to the community home page.
- **Redirect Page Name** and **Redirect Template URL**:
    
    - If you selected **Redirect**, enter the page name and template URL that the Omniscript will redirect to when the action runs into the **Redirect Page Name** and **Redirect Template URL** fields.
- **Outcome**:
    
    - If event tracking is enabled, specifies the value to be logged in the event tracking object. You can use merge fields to specify the value to be assigned. For more information, see [Tracking Omniscripts, Cards, and Integration Procedures](https://help.salesforce.com/s/articleView?id=xcloud.os_vlocity_tracking_service.htm&release=264.0.0&type=5 "For the managed package runtime, the Tracking Service in Omnistudio for Managed Packages is an event-tracking service that captures details of actions that users perform. You can use the service to track any type of event. For example, you can track the time it takes to complete the steps in an Omniscript to identify process improvements.").
- **Console Tab Label**:
    
    - Modifies the text that displays in the label of the console tab. By default, this is set to New.
- **openInPrimaryTab**: Omniscript's open in SubTabs by default. Make the Done Action open a Primary tab by taking these steps:
    
    1. In the **Done Action**, click **Edit JSON**.
    2. Set the openInPrimaryTab property to true.
        
        ```
        "openInPrimaryTab": true
        ```

## Navigate Action Functionality Map

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d324338e294">
              <p style="margin-bottom:0;">Done Action</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d324338e300">
              <p style="margin-bottom:0;">Navigate Action</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d324338e306">
              <p style="margin-bottom:0;">Configuration Notes</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Option Source: Redirect</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p>Target a component.</p>
              <p>Example Configuration:</p>
              <p><strong class="uicontrol">PageReference Type</strong>: <strong class="uicontrol">Current
                  Page</strong></p>
              <p style="margin-bottom:0;"><strong class="uicontrol">Target Params</strong>:
                <kbd>c__target=myCancelComponent</kbd>
              </p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Option Source: SObject</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;"><strong class="uicontrol">PageReference Type</strong>: <strong class="uicontrol">Record</strong></p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">Use a merge field in the Navigate Action’s Record Id configuration to
                target a specific record, otherwise navigate to an Object Level page
                using the Object PageReference Type</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Option Source: URL</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;"><strong class="uicontrol">PageReference Type</strong>: <strong class="uicontrol">Web
                  Page</strong></p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">use a URL to navigate when referencing resources outside of salesforce.
                Otherwise use one of the more specific PageReference types.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Source</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">Use Merge fields in the Navigate Action’s configuration.</p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Redirect Page Name</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Redirect Template URL</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Console Tab Label</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">Use the <kbd>c__tabLabel</kbd> and
                <kbd>c__tabIcon</kbd> parameters in the Navigate Action’s
                <strong class="uicontrol">Target Params</strong> field.
              </p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">Currently, it is not possible to control where the tab is opened.</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">Outcome</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">n/a</p>
            </td>

          </tr>
          <tr class="">
            <td data-label="Done Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e294 ">
              <p style="margin-bottom:0;"><strong class="uicontrol">Window Post Message?</strong> / <strong class="uicontrol">Session Storage
                  Message?</strong>
              </p>
            </td>

            <td data-label="Navigate Action" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e300 ">
              <p style="margin-bottom:0;">
                <strong class="uicontrol">LWC PubSub Message?</strong>
              </p>
            </td>

            <td data-label="Configuration Notes" class="slds-cell-wrap" style="vertical-align:top;" headers="d324338e306 ">
              <p style="margin-bottom:0;">Communicate with other components using the LWC PubSub Message
                configuration on the Navigate Action.</p>
            </td>

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

- **[Done Action Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_done_action_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, this page contains information on Done Action Properties.