Operations (sample payloads)

Main operations
Copy

Execute Asynchronous Script
Copy

Execute a block of JavaScript code asynchronously.

Sample Input

1
{
2
"variables": [
3
{
4
"name": "firstName",
5
"value": "John"
6
},
7
{
8
"name": "lastName",
9
"value": "Doe"
10
},
11
{
12
"name": "age",
13
"value": 30
14
}
15
],
16
"script_async": "exports.step = function(input, fileInput) {\n const fullName = input.firstName + ' ' + input.lastName;\n return {\n fullName: fullName,\n age: input.age,\n isAdult: input.age >= 18\n };\n};",
17
"files": [],
18
"file_output": false
19
}

Sample Output

1
{
2
"result": {
3
"fullName": "John Doe",
4
"age": 30,
5
"isAdult": true
6
}
7
}

Execute Script
Copy

Execute a block of JavaScript code.

Sample Input

1
{
2
"variables": [
3
{
4
"name": "firstName",
5
"value": "John"
6
},
7
{
8
"name": "lastName",
9
"value": "Doe"
10
},
11
{
12
"name": "age",
13
"value": 30
14
}
15
],
16
"script": "exports.step = function(input, fileInput) {\n const fullName = input.firstName + ' ' + input.lastName;\n return {\n fullName: fullName,\n age: input.age,\n isAdult: input.age >= 18\n };\n};",
17
"files": [],
18
"file_output": false
19
}

Sample Output

1
{
2
"result": {
3
"fullName": "John Doe",
4
"age": 30,
5
"isAdult": true
6
}
7
}