Creating a script manually

Introduction

If you're experienced in creating scripts for your Patchworks process flows and know exactly how to achieve what's needed, you can jump straight in and create scripts from first principles.

If you prefer to start with AI assistance, please see Creating a script with AI.

Need to know

  • The maximum memory size for a custom script is 512MB

  • The maximum size of a custom script is 4GB

Creating a new script

Follow the steps below:

Step 1 Log in to the Patchworks dashboard and select scripts from the left-hand navigation bar.

Step 2 Select the create script button:

Step 3 Add a unique name and a description and then choose your preferred coding language:

The Patchworks AI panel is displayed below as soon as your coding language is selected in the previous step. Please see Creating a script with AI for information about these options.

Step 4 Click the create button:

The new script is saved, and you're now in edit mode:

From here, you can add and test your code.

Adding & editing script code

Follow the steps below:

Step 1 Move down to the code panel.

Step 2 Add your script code (remember that you can use IntelliSense for easy code entry) - for example:

Step 3 When you're ready to test the script, click the save and deploy button:

This saves and deploys the code so it's ready for testing.

Last updated