---
schema_version: "1"
id: 35d3aeb752532ef9197d5368194658212bcd3c211c0b9f1c12cf92679d6362b3
title: Ending the Execution of an Omniscript (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_ending_the_execution_of_an_omniscript.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_ending_the_execution_of_an_omniscript.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e90f5fc3333b3827a93de6ee093e1fed1501f5b0d3685cc5e353310e03be30a5
description: For the managed package runtime, the Done action ends an Omniscript and returns the user to the page from which the script was launched, or to a specified URL.
products:
  - Omnistudio
release: "264"
---
# Ending the Execution of an Omniscript (Managed Package)

For the managed package runtime, the **Done** action ends an Omniscript and returns the user to the page from which the script was launched, or to a specified URL.

![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).

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.").

The Update Case form pictured below returns the user to the Case after the script is complete. The ContextId node is merged into the Source field, which tells the Script which Case record to return to:

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

For more information about how to configure additional properties for the Done Action, refer to the [Common Action Element Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_common_action_element_properties.htm&release=264.0.0&type=5 "For the managed package runtime, Action elements can be either rendered as a button when placed in a Step or Block or run remotely if placed between steps. In either case, you can specify a redirect page, where the user can proceed to the next Step or Action, or if a button, back to the source Step.").

For instructions on how to process user cancellations during an Omniscript, see [Configuring the Cancel Link in an Omniscript (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_configuring_the_cancel_link_in_an_omniscript.htm&release=264.0.0&type=5 "For the managed package runtime, the Cancel link appears on every Step in an Omniscript. From the Omniscript Designer, in the Cancel Options section of the Script Configuration, you can specify the behavior for when a user hits the Cancel link with the Cancel Type and Cancel Source.").

For details about tracking Done events, see [Tracking Service in Omnistudio for Managed Packages (Managed Package)](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.").