Run Custom Code in Shopify Flow Workflows

Enhance your Shopify Flow workflows by integrating custom code through MESA. This template allows you to execute custom logic or functions as part of your Flow automations, perfect for appending additional details, validating data, or performing complex operations. Unlock greater flexibility in your workflows and tailor Shopify Flow to meet your unique business needs.

🔧 Setup is needed:
➕ Add an action in Shopify Flow
🔌 Connect MESA to Shopify Flow
✏️ Write Custom Code in MESA


Follow the steps below to set up this workflow.

Step 1

Add a Send to Mesa action in Shopify Flow.

Step 2

Enter this Workflow's key to the Send to Mesa action (it will be  shopify_flow_send_to_custom_code unless you manually changed it). Optionally pass any data you would like to be available in MESA on the Payload field.

Step 3

In MESA, open the Custom Code step and click the Edit Code button.

Write your custom JavaScript code and press the Save changes button before returning to the builder.

Step 4

At the top of or below the workflow, hit the Save changes button to save your changes.

Step 5

At the top or bottom of the page, switch Off to On to turn on your workflow to start automating.


Optional Customizations

Optionally, when creating the Send to Mesa action, pass any data you would like to be available in MESA on the Payload field.

✋ Still have questions? We got you. Email us at contact@getmesa.com where actual humans are on standby, ready to help.