Yellow Messenger: Global utility functions and constants

I would like to reuse some code across different functions, utility code such as converting numbers into emojis. Is it possible to set this up somehow? Also is it possible to define constants that could be accesses across the project in multiple functions?

Yeah, its possible, You could write the reusable code in one function and call those wherever you need using app.executeFunction

You could also define the constants in tools → constants, You could access the values in app.constants.value inside the functions

what if I need to have input in the function? how would that work when using executeFunction?

Can I define constants in code and have them accessable everywhere?

1 Like