> For the complete documentation index, see [llms.txt](https://docs.powerfulform.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerfulform.com/app-integration/shopify-flow-integration.md).

# Shopify Flow Integration

After submitting the form successfully, the submission data will be sent to **Shopify Flow** as a JSON string.\
You can use this data to automate actions such as adding tags, sending emails, or triggering workflows.

***

### 🔧 Enable Shopify Flow

1\. Open the app > click **Forms** > open the form you want to edit

2\. Click the **Integration** icon on the left side > enable **Shopify** and click on **Shopify** option to see setting detail

<figure><img src="/files/L3fyG2WTst6zKF7Uu5MF" alt=""><figcaption></figcaption></figure>

3\. Select **Shopify Account options - Automatically create customer**&#x20;

<figure><img src="https://docs.powerfulform.com/~gitbook/image?url=https%3A%2F%2F3488889492-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FEGgRVSDpMlcGFz1igK0s%252Fuploads%252FcUUVGW4AzYzygXcrlljN%252F2025-04-23_15-30-01.png%3Falt%3Dmedia%26token%3D21198f0d-e27a-4e1f-b17c-75e4b58df55e&#x26;width=768&#x26;dpr=3&#x26;quality=100&#x26;sign=28628f9f&#x26;sv=2" alt=""><figcaption></figcaption></figure>

4\. Map form fields to Shopify Customer Fields

* On the right side, you’ll see Shopify customer attributes (Email, Phone, First Name, Last Name, Address, etc.).
* On the left, your form’s fields.

Map each form field to the corresponding Shopify attribute (e.g. “Email” → Shopify **Email**, “First name” → Shopify **First name**).

📌 **Important:** Mapping the form’s **Email** field to Shopify **Email** is required.

5. Scroll down and enable option **Enable Shopify Flow Trigger**

<figure><img src="/files/ZCY8v39GK9exBNhwsw66" alt=""><figcaption></figcaption></figure>

6. Click **Save** button

***

### ⚠️ Important Notes

Shopify Flow only triggers when a customer is created or updated. Make sure you select **Automatically create customer**

#### ❌ When Flow will NOT work

If you select **Require account approval**

* Customer is **not created immediately**
* Status = pending approval
* ➜ Shopify Flow will NOT trigger

***

### **✅** How it works

* Customer submit the form
* A new customer account is created or updated
* The system sends the submission data to **Shopify Flow** as a JSON string.\
  This includes all form fields (such as `email`, `name`, `phone`, `textarea`, etc.), which you can use in your Flow to automate processes like adding tags or sending notifications.

<figure><img src="/files/GatezloqF57h951mPEfo" alt=""><figcaption></figcaption></figure>

***

### 🔧 How to get form data in Shopify Flow

After a form is submitted, Powerful Form Builder sends the submission data to Shopify Flow as a **JSON string**. To use each field separately, add a **Run code** action to parse the data.

#### Step 1: Add a Run code action

After the Customer submitted a form trigger (or after a Condition), click **Add action**, search for **Run code**, and select it.

<figure><img src="/files/BeUPoORBf01oquloh3yn" alt=""><figcaption></figcaption></figure>

#### Step 2: Configure Run code

1. Add the GraphQL query to retrieve:
   * Submission data
   * Form ID
   * Form name
2. Paste the JavaScript code to parse the JSON string.
3. Define the output schema.

<figure><img src="/files/l4z5lcLYi1yNKfbDq7DO" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/pHLNffRqKcaWj0VkeuxW" alt=""><figcaption></figcaption></figure>

#### Result

The **Run code** action returns the form submission as structured data instead of a JSON string.

You can use this output in the next Shopify Flow steps to:

* Send emails
* Send data to third-party services
* Call external APIs
* Create or update customers
* Build custom automations

<figure><img src="/files/vf1tM1ygqqdylhRXUuJr" alt=""><figcaption></figcaption></figure>

***

#### Need More Help?

If you still need assistance, please contact us at <contact@globo.io>. Our team will be happy to help you resolve any issues or guide you further.
