Sign In Register

How can we help you today?

Start a new topic
Answered

Cloud Code - global function

Is there any way to create a function on a global scope so I can use the same code in different parts of the cloud code?


Or any way to create a global scope for my own app as 


Spark.getPlayer(), like MyApp.customAction() ?


Best Answer

Hi Alp, 


We already allow for this through the use of modules. They can be acquired and exposed in any of your Cloud Code Scripts. 


Does this answer your question? 

Best Regards, Patrick. 


Answer

Hi Alp, 


We already allow for this through the use of modules. They can be acquired and exposed in any of your Cloud Code Scripts. 


Does this answer your question? 

Best Regards, Patrick. 

Yes definitely, sorry I was completely oblivious about modules.


Thanks!

Happy to help Alp, 


Any further questions just hit us up here on the forums and we will answer as best we can. 


Best Regards, Patrick. 

Login to post a comment