What's your biggest current challenge? Have your say in Community Polls along the right column.

Re: How to use Flow to add product to a collection based on metafields

Solved

How to use Flow to add product to a collection based on metafields

AH63935
Shopify Partner
35 1 27

Hi, 

 

Let's say I have metafields of collection 1 and collection 2 on products. How can I use flow to check for those metafields and if they exist, add the product to those collections? I see the option to manually add the collection but not to automate it with metafields. Thanks!

Accepted Solutions (2)

Kalen_Jordan
Shopify Partner
796 37 143

This is an accepted solution.

You can just define the collection based on those metafield values.

View solution in original post

RPiii
Shopify Staff
96 16 34

This is an accepted solution.

If you want to run bulk updates manually, you could start with a Scheduled time trigger and a Get product data action. Then you'd want to define conditions that evaluate the returned products for the desired metafield value and start a For each loop that executes an Add product to collections action for each product and adds it to the relevant collection. 

Here's an illustrative example:
19-09-hd766-g5qj9

View solution in original post

Replies 3 (3)

Kalen_Jordan
Shopify Partner
796 37 143

This is an accepted solution.

You can just define the collection based on those metafield values.

RPiii
Shopify Staff
96 16 34

This is an accepted solution.

If you want to run bulk updates manually, you could start with a Scheduled time trigger and a Get product data action. Then you'd want to define conditions that evaluate the returned products for the desired metafield value and start a For each loop that executes an Add product to collections action for each product and adds it to the relevant collection. 

Here's an illustrative example:
19-09-hd766-g5qj9

AH63935
Shopify Partner
35 1 27

Thank you!