Trigger Shopify Flow on Registration Form submission
Send a Shopify Flow trigger every time a customer is created or updated through your Registration Form, so you can automate what happens next.
Once enabled, every time a customer is created or updated through a Registration Form, the app sends an event to Shopify Flow — Shopify's free, no-code automation tool. You can then build a workflow in Flow to react to that event however you like: notify your sales team in Slack, tag or segment the customer, create a task, sync the customer to another system, and so on.
Steps to manage
This option is only available on certain pricing plans. If you don't see Enable Shopify Flow trigger under Integration > Shopify, check Settings > Pricing plan or contact support.
Build a workflow in Shopify Flow
Choose the trigger
In the trigger step, search for Sami Wholesale (listed as "All-in-1 Wholesale B2B: Volume discount, b2b registration, tax") and open it. Inside, select the trigger named Sami B2B Wholesale Pricing — its description reads "Triggers when a customer is created or updated via a Wholesale registration form."

Result: from now on, whenever a customer registers or is updated through a form with this option enabled, the workflow runs automatically — usually within about 2 minutes of the submission.
Data available in the workflow
When building your workflow, you can insert the following variables into any step:
Customer
The Shopify customer that was created or updated — use it directly with any customer-related action (add tag, add to segment, send email, etc.).
Form > Name
The name of the Registration Form that was submitted — useful if you have multiple forms and want the workflow to behave differently depending on which one was used.
Registration customer > Data
Everything the customer filled in on the form (field label and value), packed into a single JSON string. See below to split it into individual fields.
Reading individual fields from "Registration customer > Data"
The submitted form data is sent as one JSON string (for example: {"Email": "abc@example.com", "First Name": "John", "Company name": "ABC Co."}), with every field bundled into a single variable. To split it into individual fields you can use later in the workflow, add a Run code step right after the trigger.
Step 1 — Add the "Run code" action
In your workflow, click Add action, then find and select Run code.
Step 2 — Fill in Input (GraphQL query)
In the Input box, paste:
Step 3 — Fill in Function (JavaScript)
In the Function box, paste:
Step 4 — Fill in Output (return type)
In the Output box, paste a type declaration matching what you returned in Step 3:
Step 5 — Use the result in later steps
After saving, this Run code step becomes a new variable source for the actions after it — insert email, firstName, companyName (or whatever you named them) into an email body, a Slack message, a condition, etc.
Shopify Flow's Run code executes JavaScript in a restricted sandbox (no external API calls, no external libraries, 5-second execution limit) — use it only to reshape data, not to call a webhook directly. To call a webhook, use Flow's built-in HTTP request action in a separate step.
Limitation: the Output of a Run code step only supports declaring individual fields (String, Int, Float, Boolean, ID, etc.) — there is no generic "JSON" return type. You can't pass the whole registrationCustomer.data object through freely; you must declare each field you need (Steps 3–4) using the exact label from your form. If you later add a new field to your form and want to use it in the workflow, come back and add it to the Run code step too.
Notes
Requires the Shopify Flow app on your store (free, available on every Shopify plan).
After a customer submits the form, the workflow may take up to a couple of minutes to fire — this is expected, not an error.
This feature is available depending on your app's pricing plan; if you don't see Enable Shopify Flow trigger, check your current plan or contact support.
Need support?
If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address support@samita.io
Last updated
Was this helpful?

