How to modify Update a product metafield template for list of value metafield type?

Topic summary

A user seeks to adapt the Shopify Flow template “Update a product metafield if a product tag has a certain prefix” to support a metafield of type list of values (Single line text), not just a single value.

Current issue: The flow works for one value but does not populate multiple values when a product has several tags starting with “C_” (e.g., C_Blue, C_Red, C_Wh ite). The user wants all matching tags converted into the metafield list.

Technical context: Shopify Flow is an automation tool; product metafields are custom fields. The user is working with a metafield defined as a list of Single line text and also asks about handling a metafield of type “list of collection.”

Open questions:

  • How to modify the Flow template to append all matching tags into a list-type metafield.
  • How to implement similar logic for a metafield of type list of collection.

No solutions or action items yet; thread remains unresolved. A screenshot is included but not essential to the core issue.

Summarized with AI on January 14. AI used: gpt-5.

I am using “Update a product metafield if a product tag has a certain prefix” template in Shopify flow. It works well for one value of Single line text, but it didn’t work for list of values of Single line text.

For example, I have several product tags starting “C_” like “C_Blue”, “C_Red”, or “C_White” in one product. And I wanted to convert all those tags into this metafield.

How should I modify?

In addition, when metafield type is “list of collection”, how should I make it work?

Thank you for your help!