# Advanced restock campaign Turn on automated back-in-stock emails for the products or collections you choose — with a workflow and email template tailored to each campaign. The [Global restock campaign](https://docs.foxecom.com/xflow-app/getting-started/quick-start-guide/global-restock-campaign) applies the same workflow to all out-of-stock products automatically. Use an Advanced campaign when you need different notification settings for specific products or collections — or when you want to override the global campaign for certain items. ## How to set up an Advanced restock campaign 1. Go to **XFlow > Campaigns**. 2. Click **Create campaign**. 3. Enter the campaign information. 4. Under **Products**, select the products or collections this campaign applies to. 5. Click **Save**. The campaign is saved as **Inactive** — you'll activate it after setting up your workflow and emails. Each campaign represents a dedicated restock strategy. If you're also running a Global restock campaign, set this campaign's **Priority** to **1 or higher**. The Global campaign has priority 0 — the higher number wins when the same product is covered by multiple campaigns. [*Learn more about Campaigns*](https://docs.foxecom.com/xflow-app/campaigns/overview) Open **Manage workflows** and review each workflow to confirm the actions and settings match your needs. You’ll need to set up your workflows: * **New subscriber:** Runs when a customer subscribes to a back-in-stock alert. It can send a confirmation email and notify your internal team. * **Restock notification (optional):** Runs when a subscribed product is back in stock. It sends the first notification, waits 3 days, then sends a follow-up if the customer hasn’t purchased. [*Learn more about Workflows*](https://docs.foxecom.com/xflow-app/workflows/manage-workflows/overview) Go to **XFlow > Email templates** to set up and customize your email template. Email templates control the content and branding of your notification emails, including: * Subject line * Messaging tone * Call-to-action (CTA) * Layout and branding elements [*Learn more about Email templates*](https://docs.foxecom.com/xflow-app/email-templates/design-your-email-templates) 1. Go to **XFlow > Campaigns** and open your campaign. 2. Change **Status** to **Active**. 3. Click **Save**. 1. Go to one of your targeted out-of-stock product pages on your storefront. 2. Click **Notify Me** and subscribe with a test email. 3. In Shopify admin, manually restock that product (increase inventory by 1). 4. Check your test email inbox — the notification email should arrive within a few minutes. 5. Go to **XFlow > Subscriptions** to confirm the subscription status shows **Delivered**. ![image](https://docs-assets.foxecom.app/xflow-app/xflow_rpA1Ms4i.gif) *Learn more:* [*Test an email campaign*](https://docs.foxecom.com/xflow-app/campaigns/test-an-email-campaign) ## Track performance After your campaign is live, go to **XFlow > Subscriptions** to monitor: * Number of subscribers waiting for restock * Email delivery status * Open and click activity * Whether subscribers completed a purchase All data is campaign-based — so you can compare performance across campaigns and optimize each one separately. [*Learn more about Subscriptions*](https://docs.foxecom.com/xflow-app/store-management/subscriptions) ## FAQs Yes — create as many as you need, each targeting different products or collections with its own workflow and settings. The campaign with the higher priority number takes precedence. Set priority in the campaign settings — the Global restock campaign always has priority 0. Yes — change the campaign status to **Inactive**. Your settings are preserved and you can reactivate it whenever you're ready. ## Related articles Global restock campaign Key concept overviews