How to call a Custom Function from another Custom Function?

Client -> Custom Function A -> Custom Function B -> …

Currently I know, how to work with Client and Custom Function A.
How can I call “Custom Function B” from “Custom Function A”?

Hey Lukas!

ctx.invokeFunction() method will accomplish that. And this is expecting that the function is a task function.

// Context (ctx) argument maintains the invokeFunction method for
//invoking tasks from other functions.
module.exports = async (event, ctx) => {
  const args = { param: "value" };

  await ctx.invokeFunction("myTask", args, {
    waitForResponse: false
The optio
1 Like