How can I track product expiry dates using Meta Fields?

Hi,

Certain products in our assortment have expiration dates. Each time we receive a new batch of stock, the product’s expiration date is manually updated in the product’s Meta Fields.

I want to use the Shopify Flow to keep track of these dates and send a notification to email as soon as a product reaches 10 days before the specified date.

Can anyone show me how to set this up? Thanks.

Hi Rholdt,

This is not currently possible, but Flow is working on better support for metafields that could make use cases like this possible.

Stay tuned!

Hi

you might be able to do something similar to this post for checking metafield dates…
https://community.shopify.com/post/2263340

first add a tag based on the metafield value
then check for the tagged products and send the email

then remove the tags once done

It is true that it is not natively supported. But if you have big movement on stock, you could use trigger Variant inventory changed, then on every inventory vhange pull data from variant metafield. and then use javascript to count if it is the time, then add there other actions like add tag and send email. Would need to test but in theory it should work,