Hi,
I read in the docs, “you can define multiple JavaScript functions in a single function file. The file must export a single JavaScript function from to serve as the entrypoint for incoming calls.”
Is there a way to call the “other” functions directly via context.functions.execute(), or do I have to call the single exported function and supply the subfunction name as a parameter and then execute the other function?
For instance it would be nice if this worked but it doesn’t
context.functions.execute( ‘entrypointFunction.otherFunction’, param1);
So would I need context.functions.execute( ‘entrypointFunction’, ‘otherFunction’, param1); and then the entrypointFunction does an execute of otherFunction?
I’d like to group similar functions into a single file rather than having one file each.
Thanks!
Rainer