How to Schedule Collection Updates with Metafield Dates

Launching new products or prepping for a seasonal sale often means shuffling items between collections on Shopify. Timing these moves with precision can get tricky, especially if you’re trying to keep up with marketing plans or keep things fresh for shoppers. Manual updates take time, and the risk of missing a date can throw things off.

Plenty of store owners want a way to automate these collection changes so products show up in the right place at just the right moment. Using a scheduled date in a product’s metafield unlocks a hands-off way to move items between collections. This makes your shop look polished and keeps things running smoothly behind the scenes.

By the end of this article, you’ll have a clear plan for setting up an automated workflow that moves products based on dates set in their metafields. In this guide, you’ll learn how to handle each step, avoid common mistakes, and get tips for making your product launches and seasonal changes feel effortless.


TL;DR: Don’t want to build your own? Use our ready-made template for scheduled product collection changes and get started in seconds.

MESA Template ID

scheduled-metafield-date-product-updates

Step-by-step: Schedule product collection changes by metafield date

Time needed: 5 minutes

This workflow automatically moves products between collections based on a scheduled date stored in a metafield. When the date matches today’s date, it removes the product from one collection (e.g., “Coming Soon”) and adds it to another (e.g., “New Arrivals”).

  1. Configure Schedule trigger

    Set up a daily schedule trigger to check products for their scheduled move date.Configure Schedule trigger

  2. Get products from source collection

    Use the Shopify Collection Products step to retrieve products from your source collection (e.g., “Coming Soon”). Set the limit to control how many products to retrieve—by default, it’s 50, but you can increase it up to 8,000 to fetch more products in a single request.

    If your collection has more than 8,000 products, you’ll need to implement pagination to get the full list.Get products from source collection

  3. Filter valid products

    Add a Filter step to check that the collection has at least one product in the source collection by checking that product IDs are not empty.Filter valid products

  4. Loop through products

    Set up a Loop to process each product from the filtered collection list.Loop through products

  5. Check product metafield

    Configure a Shopify Product Metafield step to retrieve the “publish_date” metafield from each product’s “custom” namespace.Check product metafield

  6. Filter products by date

    Add a Filter to only process products where:

    – The metafield value is not empty
    – The metafield date matches today’s date (format: YYYY-MM-DD)

    First, add the MESA “Date” variable, then use the formatting options to achieve the required YYYY-MM-DD format.

  7. Clear product metafield

    Add a Transform step with the following JavaScript code to remove the publish_date metafield:

    const Mesa = require('vendor/Mesa.js');
    const Transform = require('vendor/Transform.js');
    const ShopifyGraphql = require('vendor/ShopifyGraphql.js');
    module.exports = new class {
      script = (payload, context) => {
        const output = Transform.convert(context, payload);
        const mutation = `mutation MetafieldsDelete($metafields: [MetafieldIdentifierInput!]!) {
          metafieldsDelete(metafields: $metafields) {
            deletedMetafields {
              key
              namespace
              ownerId
            }
            userErrors {
              field
              message
            }
          }
        }`;
        const response = ShopifyGraphql.send(
          mutation,
          {
            metafields: [
              {
                ownerId: `gid://shopify/Product/${output.product_id}`,
                namespace: `${output.namespace}`,
                key: `${output.key}`,
              },
            ],
          },
          null
        );
        Mesa.output.next(response);
      }
    }

  8. Get source Collection ID

    Retrieve the source Collection ID (e.g., “Coming Soon”) using the Shopify Custom Collections endpoint.Get source Collection ID

  9. Get collection relationship

    Get the Collection ID that links the product to the source collection using the Shopify Collects endpoint.Get collection relationship

  10. Remove from source collection

    Delete the Shopify Collects relationship to remove the product from the source collection.Remove from source collection

  11. Add to destination collection

    Create a new Shopify Collect relationship to add the product to the destination collection (e.g., “New Arrivals”).Add to destination collection

  12. Turn workflow “On”

    Turn the workflow on and run it once to ensure everything is configured correctly before letting it run automatically on the daily schedule.Turn workflow “On” to schedule product collection changes by metafield date.


Save yourself the setup. Use this template instead:

MESA Template ID

scheduled-metafield-date-product-updates

Why Schedule collection updates with metafield dates?

Automating collection updates by metafield date gives you a ton of flexibility:

Prepare for product launches: Set your release date once, and products jump from “Coming Soon” to “New Arrivals” without lifting a finger. This keeps your launch on schedule and creates a sense of anticipation for shoppers.

Manage seasonal collections: Move summer products into the spotlight or tuck away holiday items automatically when the date hits. You don’t need to remember to make the switch in the middle of a busy week.

Control product visibility: Keep items hidden until their release date, or shift them out of a featured spot when a sale ends. You set the date, and the system handles the rest.

Automate collection management: By using scheduled metafield updates, you can let the store handle these changes, which frees up your team for other priorities.

Enhance marketing strategies: By syncing product collection changes with your marketing push, everything appears seamless when the promotion goes live.

Tips on scheduling collection updates with metafield dates

Use a consistent date format

Pick a date format like YYYY-MM-DD and stick to it for all your metafield dates. This keeps things clear and prevents any mixups when the automation checks which items need to be moved.

Plan ahead

Set up your dates before the start of each season or a big launch. This will give you peace of mind that products will appear in the right collections at the right time.

Leverage metafields effectively

Metafields can do much more than just store a date. Try using them for sale end dates, limited edition releases, or collection-specific notes. For more ideas, check out our Shopify metafields guide.

Combine with other automation

Mix scheduled collection changes with automations like product tagging or inventory updates. You’ll build a smoother workflow and save yourself from repetitive tasks. Learn more ways to automate metafields for extra flexibility.

Frequently asked questions

Can I schedule multiple collection updates for a single product?

Yes. You can assign different metafield dates to move a product between collections at various times.

What happens if a product doesn’t have a metafield date?

Products without a metafield date won’t move automatically. They’ll stay in their current collection until you add a date or move them yourself.

Can I use this method to remove products from all collections?

Yes. Using a metafield date, you can set up a workflow that removes a product from its collection without adding it to a new one.

How do I choose the correct date format for my metafields?

Go with something standard—YYYY-MM-DD works well. It’s easy to read and works for both you and any automated system checking the dates.

What you should do now

Whenever you’re ready…here are 4 ways MESA can help you get more done:

  1. Sign up for MESA. The best way to get started is sign up for MESA today. Every plan includes the first 7-days free so you can be assured your workflow is running properly.
  2. Browse pre-made templates. Our customizable workflow templates are a great way to get started more quickly.
  3. Talk to our automation experts. If you need help personalizing any workflow template, guidance how to make any automation or, simply want us to make your workflow, we can help.
  4. If you know another merchant who’d enjoy reading this page, share it with them via LinkedIn, YouTube, Twitter, or Facebook.

How to Schedule Collection Updates with Metafield Dates

Skip the setup. Get the template.

Use this template to schedule your collection updates.

View template
background: abstract lines

Accelerate your work with AI automation.

Build AI agents in minutes that integrate, automate, and simplify your business.

Try MESA for free, 7-day trial included.