Write Javascript step

# What to use the Write Javascript step for

Are you a coder? Write custom javascript for any operation inside your Axiom, from posting to an API to formatting data from steps. You can also use data from other Steps as variables in your custom JS. Please note Axiom data model is a 2d array, so when returning data as a token, remember to return an array (or it will not work). You can return values as an array of arrays from this step - they will be appended to the current row. To learn more about what you can do, click here.

Are you using this step to create a required feature? Please do let us know we may create a new step for you.

You can use this step to:

  • Create custom logic
  • Format data from other steps
  • Use Puppeteer's API
  • Use the node filesystem API
  • Click buttons
  • Scrape content
  • Run JS in the browser or the App

Some usefull JS snippets.

# How to configure the Write javascript step

# Script

Write your JS into our JS editor field. If Tokens are available from other steps, you will see an 'Inset data' button. Data is only available for Steps added before your Javascript step.

# Run in app

Toggle on, then Check to run the javascript in the context of the Axiom app, rather than in the browser window.

Configuration settings

    Step type

    Other