FAQ
Last updated
Last updated
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.
You can do that by using:
The results will look something like this:
To check if an automation was triggered by a "test" (triggered by testing a workflow) or by an actual "live" run (usually triggered with webhooks) you can check for context.task.is_test
Mesa will set context.task.is_test
to true
if the automation was a manual test
Mesa will set context.task.is_test
to false
if the automation was triggered naturally
You can also explore what context.task
has by logging it in your code: Mesa.log.info('context.task', context.task);
For example, you can access the workflow title as: context.task.automation.automation_name