JavaScript connector methods
reference australia Updated Sep 10, 2026 1 min read connector-javascript-methods.md
Execute custom JavaScript with the Execute method as part of an automation in the RPA Desktop Design Studio.
Execute
Executes the custom JavaScript you have written. Before executing,
- Configure the JavaScript connector before executing the method. To configure, see Configure the JavaScript connector.
- Configure the Execute method.
Configure the Execute method
-
Click the method settings icon ([Omitted image "component-settings-icon.png"] Alt text: Method settings icon).
-
Select the class from the Classes list as set in the custom JavaScript you had written.
-
Select the method from the Methods list as set in the custom JavaScript you had written.
-
Click OK.
A Data In port is created to accept the value for the function you have created.
| Parameter | Description | Data port type | Data type | Default value | Mandatory? |
|---|---|---|---|---|---|
| Function value | Accepts the value for the function you have created. | Data in | Object | None | Yes |
| Result | Returns the output of the custom JavaScript execution. | Data out | String | None | Not applicable |
Parent Topic:JavaScript
41 lines · 2.0 KB
---
title: JavaScript connector methods
description: Execute custom JavaScript with the Execute method as part of an automation in the RPA Desktop Design Studio.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/australia/integrate-applications/connector-javascript-methods.html
release: australia
topic_type: reference
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [JavaScript, Connectors, Automation components, RPA Desktop Design Studio, Robotic Process Automation \(RPA\) Hub, Workflow Data Fabric]
---
# JavaScript connector methods
Execute custom JavaScript with the Execute method as part of an automation in the RPA Desktop Design Studio.
## Execute
Executes the custom JavaScript you have written. Before executing,
- Configure the JavaScript connector before executing the method. To configure, see [Configure the JavaScript connector](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/configure-javascript-connector.md).
- Configure the Execute method.
## Configure the Execute method
1. Click the method settings icon \(\[Omitted image "component-settings-icon.png"\] Alt text: Method settings icon\).
2. Select the class from the **Classes** list as set in the custom JavaScript you had written.
3. Select the method from the **Methods** list as set in the custom JavaScript you had written.
4. Click **OK**.
A Data In port is created to accept the value for the function you have created.
|Parameter|Description|Data port type|Data type|Default value|Mandatory?|
|---------|-----------|--------------|---------|-------------|----------|
|Function value|Accepts the value for the function you have created.|Data in|Object|None|Yes|
|Result|Returns the output of the custom JavaScript execution.|Data out|String|None|Not applicable|
**Parent Topic:**[JavaScript](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/integrate-applications/javascript.md)
| title | JavaScript connector methods |
| description | Execute custom JavaScript with the Execute method as part of an automation in the RPA Desktop Design Studio. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/australia/integrate-applications/connector-javascript-methods.html |
| release | australia |
| topic_type | reference |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | JavaScriptConnectorsAutomation componentsRPA Desktop Design StudioRobotic Process Automation \(RPA\) HubWorkflow Data Fabric |