CloudScript function:
handlers.Test = function (args, context) { var updatesuccessful = false; ... updatesuccessful = true; var result = { ... "Successful": updatesuccessful }; return result; }
In the client I call this CloudScript function and if everything was successful in this function then I want that a rule is triggered. I created a rule and I defined the following condition:
The PlayStream event of the CloudScript function looks like this after the client called it:
"CloudScriptExecutionResult": { "FunctionName": "Test", "ExecutionTimeSeconds": 0.4202419, "ProcessorTimeSeconds": 0.004855, "MemoryConsumedBytes": 27856, "HttpRequestsIssued": 0, "APIRequestsIssued": 5, "FunctionResult": { "Successful": true, ... },
"Successful": true but the rule is not triggered. The condition should be fulfilled in this case and then a different CloudScript function should be executed.
Why is the rule not triggered when "Successful": true ?