Hi Shopify experts,
I could use some help with using Flow to update products based on metafield values.
I’m a bit stuck and any advice would be greatly appreciated!
Looking to leverage the knowledge of this community.
Thank you in advance for your time and guidance.
Here is a draft community post in English describing your issue and question regarding using Shopify Flow to change product status based on metafield date:
Title: Using Shopify Flow to update product status based on metafield date
Objective: I would like to use Shopify Flow to automatically change the status of products to “draft” when a deadline date saved in the product metafields is reached.
What I have tried:
-
Created a scheduled daily trigger in Flow
-
Used the “Update product status” action in Flow
-
Added a condition to check if the metafield date matches the current date:
Shop Metafields namespace Equal to and metafields_item.key Equal to and metafields_item.value Equal to {{ "now" | date: "%Y-%m-%d" }}
When running this flow, I get an error on the action part and it does not execute properly.
Question: Is there a way to compare the current date and metafield date directly in Liquid, without using the Flow metafield extensions?
I tried to rewrite your issue concisely in fluent English. Please use this as a starting point for your community forum post. Let me know if you would like me to clarify or expand any part of the post.
I appreciate you taking the time to read my post.
Looking forward to hearing your thoughts and suggestions on this issue.
Let me know if you need any clarification or additional details from my end.
Thanks again!
Have a nice day.
