Skip to main content
Skip table of contents

How-To: Write Custom Code Task

Definition

The in-app editor allows you to copy and paste your code directly into Workflows or write your code from scratch, allowing you to make changes directly in the UI as needed. This solution is perfect for smaller code snippets that you may need to change and edit on the fly.

This editor is built using monaco-editor, the same underlying base as VSCode. The editor will automatically perform syntax highlighting based on the language you selected. In addition, you can press ctrl+f to bring up functionality to find and replace text in your code.

When writing code, the File To Run field represents both the script name of the code you provided and the name of script to be executed.

image-20250522-144817.png

Additional Notes

  1. The in-app editor only supports editing one file per Task.

  2. You cannot include folder names in the File To Run field when writing code. The file will always be created in the home directory.

    1. If you use more than 1 custom code task in your workflow - the File To Run must be unique. (Ie if you have two python tasks, you can use script.py for one, but you must use a different File to Run for the other, like script_2.py

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.