faq.md

For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs; this page is available as Markdown.

FAQ

Can I use fetch in a custom code step?

No, because the custom code environment is a V8 environment, fetch is not available. However, MESA.request is our replacement for it. You can check out the MESA SDK for more information on available functions in the custom code step.

How do you throw an error from within a custom code step?

You can do that by using:

throw new Error("your error description")

How do I get advanced details related to my automation?

To check if an automation was triggered by a "test" (triggered by a manual run in a workflow) or by an actual "live" run (usually triggered with webhooks) you can check for context.task.is_test

You can also explore what context.task has by logging it in your code: Mesa.log.info('context.task', context.task);