This page provides a comprehensive reference for the script.run action available in the workflow automation actions catalog. This action enables you to execute Python scripts within your workflows for data transformation, processing, and custom operations.
Run a script
Execute a python script and returns the response to a workflow.
Input Field | Optionality | Type | Description | Example |
|---|---|---|---|---|
script | Required | String | Any data transformation script | |
runtime | Required | Enum | Run time version of script |
|
parameters | Optional | List | list of parameters to be used in script |
|
Output Field | Datatype | Examples |
|---|---|---|
success | Boolean |
|
payload | Object |
|
errorMessage | String |
|
Example |
|---|
|
What script.run can do
Supported python version
- PYTHON_3_13 runtime with full language features
Allowed imports
"python-dateutil","simplejson","re","math","decimal","json","datetime","collections","itertools","functools","operator","string","argparse"Data handling
- Parse and transform JSON data structures
- Process complex strings and perform text manipulation
- Format output as tables, markdown, or structured data
Parameter Passing
- Pass simple values via command-line arguments with argparse
What script.run cannot do
Restricted imports
base64- Not allowed for security reasonssys- Not allowed for security reasonsos- System operations restricted- Most third-party libraries not included in Python 3.13 stdlib
Parameter limitations
- Cannot pass complex JSON as command-line parameters (causes Unsafe script argument error)
- Cannot pass strings with special characters via parameters
Network/External access
- No network calls or external API access
- No file system access outside script execution