Shopify Flow

Shopify Flow Unleashed: Advanced Strategies for Large Catalogs & Dynamic Product Tagging

Hey there, fellow store owners! It's your Shopify migration expert here at Shopping Cart Mover, diving deep into the community forums to bring you actionable insights. Today, we're tackling a couple of common headaches that pop up when you're trying to automate things with Shopify Flow: dealing with product lists that significantly exceed 100 items and dynamically tagging products using values from your invaluable metafields.

I recently stumbled upon a super insightful thread where a store owner, sebas07, was wrestling with exactly these challenges. They wanted to grab specific product data, like familia_web and modelo_real (which sound like custom metafields to me!), and use those values to add tags to their products. The ultimate goal? To do this not just for one product, but for their entire catalog. And guess what? The native Shopify Flow actions weren't quite cutting it for a truly scalable solution.

Shopify Flow GraphQL action for dynamic product tagging from metafields
Shopify Flow GraphQL action for dynamic product tagging from metafields

The 100-Product Predicament in Shopify Flow

One of the first things that came up in the discussion, thanks to tim_1, was a crucial limitation of Shopify Flow's built-in actions. While you can use the Get product data action to retrieve a list of matching products and then process them with a Loop action, there's a catch: all "Get ..." actions in Flow are limited to a maximum of 100 objects. If you're running a store with hundreds or even thousands of products, this limit can be a real roadblock.

tim_1 correctly pointed out that for larger catalogs, you'd typically have to implement workarounds like tagging/marking products and scheduling multiple runs to cover everything. It's doable, but it adds complexity, increases the risk of errors, and isn't ideal for a truly seamless, hands-off automation. For businesses undergoing a migration, ensuring all product data, including tags, is consistently updated across a vast inventory is paramount, and these manual workarounds can quickly become a bottleneck.

The Challenge of Dynamic Tagging from Metafields

Beyond the product count, sebas07 highlighted another common struggle: dynamically applying tags based on product metafields. Imagine you have custom metafields for a product's "Family Web" (familia_web) and "Real Model" (modelo_real). You want these values to automatically become product tags for better filtering, SEO, or internal organization. The native Add product tags action in Shopify Flow, however, does not directly support Liquid variables for tag values. This means you can't simply pull a value from a metafield and insert it as a tag without a more advanced approach.

This limitation forces many merchants into manual tagging or complex external scripting, which defeats the purpose of an automation platform like Shopify Flow. For a growing e-commerce business, especially one managing a diverse product range, efficient and accurate tagging is critical for product discoverability and customer experience.

Unlocking Unlimited Products & Dynamic Tagging with Flow Companion and GraphQL

This is where the Shopify community truly shines, offering innovative solutions! A fantastic approach was shared by Mivicle, leveraging a powerful third-party app called the Flow Companion app. This app extends Shopify Flow's capabilities significantly, allowing us to bypass the native limitations.

1. Overcoming the 100-Product Limit for Bulk Automation

The Flow Companion app introduces an action called Start custom workflow for list of product. Crucially, this action has no limit on the number of selected items. This is a game-changer for large catalogs.

To implement this, you'll set up two distinct workflows:

  • Workflow 1 (The Initiator): This workflow starts on a schedule (e.g., daily, weekly) or any other trigger. It uses the Start custom workflow for list of products action. You can specify a query to filter products (e.g., all active products, products from a specific vendor) or leave it broad to include your entire catalog. In the Specifier field, you'll enter a unique identifier, like set_tags_from_metafields. This specifier acts as a signal for your second workflow.

  • Workflow 2 (The Processor): This workflow starts with the Product: custom trigger triggered trigger from the Flow Companion app. It then checks that the Specifier equals the value you set in Workflow 1 (e.g., set_tags_from_metafields). This ensures that only products initiated by your first workflow are processed. This workflow will then contain the logic for adding tags.

2. Dynamic Tagging Using Metafields and GraphQL

Within your second workflow (The Processor), after confirming the specifier, you'll use another powerful action from the Flow Companion app: Execute GraphQL request. GraphQL is an API query language that allows for precise data fetching and manipulation, perfect for situations where native Flow actions are too restrictive.

Here's how you can construct the GraphQL request to dynamically add tags from your metafields:

GraphQL Mutation:

mutation addTags($id: ID!, $tags: String!) {
  tagsAdd(id: $id, tags: $tags) {
    node {
      id
    }
    userErrors {
      message
    }
  }
}

Variables for the Request:

{
  "id": "{{product.id}}",
  "tags": "{{product.metafields.custom.familia_web.value}}, {{product.metafields.custom.modelo_real.value}}"
}

In the variables, {{product.id}} dynamically pulls the ID of the product being processed. For the tags, {{product.metafields.custom.familia_web.value}} and {{product.metafields.custom.modelo_real.value}} retrieve the exact values from your custom metafields (adjust custom if your metafield namespace is different) and format them as a comma-separated string for the tagsAdd mutation.

This setup allows you to:

  • Process an unlimited number of products in batches.
  • Dynamically pull specific data from product metafields.
  • Apply these metafield values as product tags, enhancing product organization and discoverability.

Benefits for Your Shopify Store and Migrations

Implementing these advanced Shopify Flow strategies, especially with the help of apps like Flow Companion, offers significant advantages:

  • Streamlined Product Management: Automate tedious tagging tasks, freeing up valuable time for strategic growth.

  • Enhanced SEO and Discoverability: Consistent and accurate tagging improves product filtering on your storefront and can boost your search engine rankings.

  • Improved Customer Experience: Well-tagged products lead to more intuitive navigation and better search results for your customers.

  • Scalability: Your automation workflows can grow with your store, handling thousands of products without manual intervention.

  • Data Integrity during Migrations: For businesses migrating to Shopify, ensuring all product data, including dynamically generated tags, is correctly transferred and maintained is crucial. These automation techniques help preserve data integrity post-migration, ensuring a smooth transition.

Best Practices and Considerations

  • Thorough Testing: Always test your workflows on a small subset of products or in a development store before deploying to your entire catalog.

  • Metafield Structure: Ensure your metafields are correctly set up and accessible. The example uses custom namespace, adjust if yours is different.

  • App Permissions: Understand the permissions required by third-party apps like Flow Companion.

  • Error Handling: The GraphQL mutation includes userErrors, which is good practice for debugging. Monitor your Flow runs for any errors.

Conclusion

Shopify Flow is a powerful tool, and by understanding its nuances and leveraging advanced techniques with complementary apps and GraphQL, you can truly unleash its potential. Overcoming the 100-product limit and implementing dynamic tagging from metafields are just two examples of how you can elevate your store's automation, improve data quality, and enhance both operational efficiency and customer experience.

At Shopping Cart Mover, we understand the complexities of managing and migrating e-commerce data. Solutions like these are vital for maintaining a robust and efficient Shopify store. If you're looking to optimize your Shopify setup or planning a seamless migration, don't hesitate to reach out to our experts!

Share:

Use cases

Explore use cases

Agencies, store owners, enterprise — find the migration path that fits.

Explore use cases