Function Call
Calls the cloud code.
Source Code
playNANOOHandlers.cloudCodeRun = function() {
var result = pluginCloudCode.run({
version : "v20210901",
parameters : {
tableCode : "tableCode",
functionName : "functionName",
functionArguments : JSON.stringify({
"Argument1" : "TEST1",
"Argument2" : "TEST2",
"Argument3" : "TEST3"
})
}
});
if(result.statusCode == 200) {
log.debug(result.body.toString());
return true;
} else {
return false;
}
}
Request Parameter
Parameter | Description | Type |
---|---|---|
tableCode | Table Code | string |
functionName | Cloud code function name | string |
functionArguments | Data to be passed to the cloud code function | string |
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Function": Oobjectbject,
"Logs": array,
"Result": object,
"Error": object,
"RunTimeMilliSeconds": integer
}
Communication Result Details
Data Key | Description | Type |
---|---|---|
Function | Cloud code debug information | object |
Logs | Cloud code debug information | array |
Result | Cloud code function call result | object |
Error | Error information from cloud code | object |
RunTimeMilliSeconds | Time elapsed during cloud code call | integer |