---
schema_version: "1"
id: 601cd111f6587ae6bacb7e9093ae04c0491f96b46767ed713b178de1cf44c39b
title: Extend the OmniScriptBaseMixin Component (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_extend_the_omniscriptbasemixin_component.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_extend_the_omniscriptbasemixin_component.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cecb4f907b090363a7d819838ef1870b164bb71eff7bd2fe527bfc7ec241b1c3
description: For the managed package runtime, enable a custom Lightning web component to interact with an Omniscript by extending the OmniScriptBaseMixin component. The OmniScriptBaseMixin includes methods to update an Omniscript's data JSON, pass parameters, and more.
products:
  - Omnistudio
release: "264"
---
# Extend the OmniScriptBaseMixin Component (Managed Package)

For the managed package runtime, enable a custom Lightning web component to interact with an Omniscript by extending the OmniScriptBaseMixin component. The OmniScriptBaseMixin includes methods to update an Omniscript's data JSON, pass parameters, and more.

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

1. **[Requirements for Extending OmniScriptBaseMixin (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_req_extend_omniscriptbasemixin_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, review and complete the requirements before you extend the OmniScriptBaseMixin component.
2. **[Extend the Component (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_extend_omniscriptbasemixin_component_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, learn how a custom Lightning web component extends the OmniScriptBaseMixin component to wrap a Salesforce Lightning Element.
3. **[Validate the Component (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_validate_omniscriptbasemixin_component_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, learn how to add validation to the OmniScriptBaseMixin component by redefining the `checkValidity()` function.
4. **[Navigation Between Steps (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_navigate_to_step_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, beginning with Vlocity Insurance and Health Winter '20, learn which mixins you can set on the steps of an Omniscript so that users can navigate between those steps.
5. **[Data Save Inside of a Custom Component (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_save_data_inside_custom_component_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, when the custom component doesn’t exist in the DOM, store the data in a state. To store data in a state, use the `omniSaveState()` function. The `omniSaveState` function accepts three arguments: a data object, a key, and a boolean.
6. **[Retrieval of Custom Component Data from an Omniscript (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_retrieve_custom_component_data_from_omniscript_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, use the `omniGetSaveState()` function to retrieve custom component data from an Omniscript.
7. **[Clear a Saved State from a Previous Step (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_clearing_a_saved_state_from_a_previous_step.htm&release=264.0.0&type=5)**  
    For the managed package runtime, beginning with Vlocity Insurance and Health Winter '20 , when a Custom LWC's saved state relies on data from a previous step, you can conditionally clear the saved state of the Custom LWC whenever a user navigates to a previous step. After configuration, the Step element passes a boolean flag to the custom LWC. The code in your Custom LWC must use the boolean to determine whether to instantiate a new saved state or continue using the existing saved state.
8. **[Access the Layout of the Omniscript Base Mixin (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_access_layout_of_omniscript_base_mixin_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, call the Layout for your Custom LWC by passing the data-omni-layout parameter to the `getAttribute` method.
9. **[Remote Calls (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_make_remote_calls_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, beginning with Vlocity Insurance and Health Winter '20 , enable users to make remote calls from a Custom LWC by using the `omniRemoteCall()` method.
10. **[Data JSON Update (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_update_data_json_vlocity.htm&release=264.0.0&type=5)**  
    For the managed package runtime, update the custom Lightning Web component element, map responses to the Omniscript’s data JSON, and create and map data inside the custom Lightning Web component element.