---
schema_version: "1"
id: 7d239197bfc2df5ffbb2f9927329824027af685985cc8d8eaf9d4593746bdcc8
title: Remote 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_remote_action.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_remote_action.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 99a689c0107c5cdc304f4c350f52811c68a889cb7bf776525ed9813409eb4aa3
description: For the managed package runtime, call Apex classes from Omniscript using the Remote Action element.
products:
  - Omnistudio
release: "264"
---
# Remote Action (Managed Package)

For the managed package runtime, call Apex classes from Omniscript using the Remote Action element.

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

Before You Begin

Create an Apex class in Salesforce to call from Omniscript.

1. Add a **Remote Action** before a Step, in a Step, or after a Step to load data or send data in the Omniscript. The Omniscript's data JSON is sent as the input.
2. In the **Remote Class** field, enter the name of the Apex class that the action calls.
    
    ![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
    
    The Apex Class must implement NS.VlocityOpenInterface. NS = the namespace of the Apex class.
3. In the **Remote Method** field, enter a method of the class that the Action calls. For example—`validateAddress`.
4. (Optional) In the **Pre-** and **Post-Transform Data Mapper Interface**—optionally select an Omnistudio Data Mapper Transform interface to run before or after the Remote Action.
5. (Optional) Change the amount of time before the Action times out using the Remote Timeout property. In the element, click **Edit Properties as JSON**, and in the `remoteTimeout` property, set a time in milliseconds. The default timeout is `30,000`, or 30 seconds. The maximum is `120,000`, or 120 seconds.
6. (Optional) Configure additional properties in the Remote Action.
7. (Optional) When Invoke Mode is set to non-blocking, elements using default values will not receive the response because the element loads before the response returns. You must configure these properties to map the response to an element:
    
    - **Response JSON Node**: VlocityNoRootNode
    - **Response JSON Path**: The name of the Omniscript Element receiving the value.

- **[Example (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_example_1.htm&release=264.0.0&type=5)**  
    For the managed package runtime, in the Troubleshooting Omniscript, the callOut1 Remote Action element calls an external system to check if the asset is still under warranty.
- **[Remote Action Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_remote_action_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, this page contains information on Remote Action Properties.