// Cloud Code for CreateTeamResponse
Spark.setScriptData("resultfail", Spark.hasScriptErrors());
while the response is
{ "@class": ".CreateTeamResponse", "error": { "teamType": "MAX_OWNED_REACHED" }, "scriptData": { "resultfail": false } }
Hi Damien,
The error in the request you are sending is a system error. The hasScriptErrors method is for custom errors that the user has set in the script with setScriptError. It won't pick up system errors. Does that make sense ?
Regards,
Liam
damien delmarle
// Cloud Code for CreateTeamResponse
Spark.setScriptData("resultfail", Spark.hasScriptErrors());
while the response is