Shopify Flow - Scheduled to run add product tag if metafield value is present

Hi - I am trying to create a flow to add a product tag to a product when a metafield has a certain value.

Trigger: Scheduled to Run

Action: Get Product Data (Query: Created in the last day)

Condition: Check if Metafield Key is Gender & Value is Unisex

Action: Add Tag Male, Female

The issue I am having is “Get Product Data” doesn’t return Tags.

Is it possible to include tags in the returned data, to allow me to perform the final action?

Any help would be much appreciated.

If you read that text closely, you will see that it’s recommending a “For Each” action.

I think you want this:

  • Schedule trigger
  • Get product data
  • For each (product)
    • Check gender/Unisex
    • Add product tag

I’ll add - your query should include something to exclude products that already have those tags. Something like:

tag_not:male AND tag_not:female
1 Like