Workflow-Example:
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”?
Workflow-Example:
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.
https://docs.8base.com/docs/8base-console/custom-functions/tasks
// 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