Update Metafield with the Date a product is turned active on

Solved

Update Metafield with the Date a product is turned active on

mrduncan
Visitor
1 0 0

I would like to have a metafield that updates with the current date when a product status is turned to active. Right now I have one that says it is successful but the date is not being updated. Some help would be appreciated. 

 

Screenshot 2024-03-21 at 9.44.04 AM.png

 

Accepted Solution (1)

DaveMcV
Shopify Staff
104 31 29

This is an accepted solution.

Hi Mrduncan,


Your metafield looks like it has the namespace custom and key date_created.  You should put those each into the respective namespace and key fields instead of using custom.date_created in both.

 

Hope that helps!

DaveMcV | Flow Development Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.

View solution in original post

Reply 1 (1)

DaveMcV
Shopify Staff
104 31 29

This is an accepted solution.

Hi Mrduncan,


Your metafield looks like it has the namespace custom and key date_created.  You should put those each into the respective namespace and key fields instead of using custom.date_created in both.

 

Hope that helps!

DaveMcV | Flow Development Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.