Skip to content
Try free for 14 days
English
EnglishFrenchSoonItalianSoonJapaneseSoonSpanishSoonPortuguese (Portugal)SoonGermanSoonCzechSoonDanishSoonFinnishSoonKoreanSoonNorwegian (Bokmål)SoonDutchSoonPolishSoonPortuguese (Brazil)SoonTurkishSoonChinese (Simplified)SoonChinese (Traditional)Soon
Open in Claude Ask questions about this pageOpen in ChatGPT Ask questions about this page

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.

  1. From the app, click Registration Form, open the form you want, then click the Integration tab and choose Shopify.

  2. Turn on Enable Shopify Flow trigger.

  3. Click Save.

  1. Go to Shopify Admin > Apps > Flow. It’s free and available on every Shopify plan; install it if you haven’t already.

  2. Click Create workflow.

  3. 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.”

  4. Add whatever actions you need — Flow ships with hundreds of built-in actions: send a notification, add a tag, call a webhook, branch on a condition, and more.

  5. Click Turn on.

When building your workflow, you can insert the following variables into any step:

VariableDescription
CustomerThe Shopify customer that was created or updated — use it directly with any customer-related action (add tag, add to segment, send email, etc.).
Form > NameThe 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 > DataEverything 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”

Section titled “Reading individual fields from “Registration customer > Data””

The submitted form data is sent as one JSON string (for example: {"Email": "[email protected]", "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:

{
registrationCustomer {
data
}
}

Step 3 — Fill in Function (JavaScript)

In the Function box, paste:

export default function main({ registrationCustomer }) {
const formData = JSON.parse(registrationCustomer.data);
return {
email: formData['Email'] || '',
firstName: formData['First Name'] || '',
companyName: formData['Company name'] || '',
};
}

Step 4 — Fill in Output (return type)

In the Output box, paste a type declaration matching what you returned in Step 3:

type Output {
email: String!
firstName: String!
companyName: String!
}

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.

  • 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.

If you do encounter any difficulty while proceeding these steps, don’t show any hesitation to contact us promptly via the email address [email protected].

Was this helpful?