Hi, I have a method in my cloudscript but it's not showing in Scheduled Tasks when I choose to run Cloudscript from Actions but other functions of my Cloudscript are showing up there.
Why is that? Does it take some time for the functions to show in Scheduled Tasks? Or is there some limit for the functions?
Answer by Citrus Yan · Aug 26, 2020 at 08:09 AM
Please make sure that you deployed the latest revision with add your CloudScript functions to the handlers object so that it’s made available to your title, like this:
handlers.helloWorld = function (args,context) { return “Hello!” }
@Citrus Yan Can't I use simple JS functions?
function something(myargument1) { //do something }
No, the function must be added in the handlers object.