How it works
Follow these 2 simple steps to start triggering custom code from your Shopify Flow workflows
Retrieve data from Shopify Flow
Retrieve data from Shopify Flow
Custom Code
Custom Code
Make it your own
Customize this workflow even further:
Add conditional logic branches
Create smart decision trees in your custom code that choose different actions based on Flow data, like processing high-value orders differently than regular orders.
Connect to external APIs
Use your custom code to send data to third-party services like analytics platforms, CRM systems, or marketing tools that don't have direct Flow connectors.
Transform data for specific formats
Process Flow data into custom formats required by your business systems, such as converting Shopify order data into your accounting software's specific structure.
Store results in data tables
Save processed results or calculations in MESA's built-in database for tracking metrics, building reports, or referencing in future workflows.
Frequently asked questions
Can I access all the same data in custom code that was available in my Flow workflow?
Yes, all data that your Flow workflow has access to gets passed through to the custom code step. This includes order details, customer information, product data, and any custom fields or calculated values from previous Flow steps.
What happens if my custom code encounters an error?
The workflow will stop at the custom code step and log the error details. You can view error messages in the MESA activity log to debug your code. Consider adding try-catch blocks in your JavaScript to handle potential errors gracefully.
Can I trigger additional MESA workflows or actions from my custom code?
Yes, you can use JavaScript to make HTTP requests to MESA's API or other webhook endpoints to trigger additional automations. You can also return data that gets passed to subsequent steps if you add more actions after the custom code step.
What is a template?
Templates are pre-made workflows by our team of experts. Instead of building a workflow from scratch, these have all the steps needed to complete the task.
Can I personalize a template?
Yes! Every step can be customized to meet your exact requirements. Additionally, you can even add more steps and make it more sophisticated.
Are templates free?
Yes! Our entire library containing hundreds of templates are free to use and customize to your exact needs.
Ready to start triggering custom code from your Shopify Flow workflows?
Join thousands who've automated their work and saved an average of 3.5 hours every week.
Start with this template — It's free7-day free trial • 2 min setup • Cancel anytime