0CodeKit icon

0CodeKit

A toolbox of no-code utilities

Actions114

Code → Run JS Scripts Hosted on 0CodeKit

AI-generated

Overview

This node executes JavaScript scripts that are hosted on the 0CodeKit platform. It allows users to select a predefined function by its name or ID from their 0CodeKit account and pass variables to the script for dynamic execution. This is useful for automating custom JavaScript logic without needing to write or host the code externally. For example, a user can run a specific data transformation or calculation script stored in 0CodeKit by selecting it and providing necessary input variables.

Use Case Examples

  1. Running a custom JavaScript function hosted on 0CodeKit to process input data dynamically.
  2. Passing variables to a hosted script to customize its behavior during execution.

Properties

Name Meaning
Code Name or ID Select the name or ID of the JavaScript function created and hosted in the 0CodeKit account to execute.
Code Variables Set of variables to pass to the selected JavaScript function. Each variable has a name (defined in the code editor for the selected function) and a value to be used during execution.

Output

JSON

  • result - The output returned by the executed JavaScript function hosted on 0CodeKit.

Dependencies

  • Requires an API key credential for 0CodeKit to authenticate and make requests to the 0CodeKit API.

Troubleshooting

  • Ensure the selected Code Name or ID exists in the 0CodeKit account and is accessible with the provided API credentials.
  • Verify that the variable names match those defined in the hosted JavaScript function to avoid runtime errors.
  • If the node throws errors related to API requests, check the network connectivity and validity of the API key.

Links

Discussion