FLOW: Is there any way to leave a "Stamp" to know which flow updated a certain object? Ex. Product

FLOW: Is there any way to leave a "Stamp" to know which flow updated a certain object? Ex. Product

wonena-dev
Shopify Partner
21 0 7

I'm using the Mutations in Shopify Flow, and none of the Input Fields allow me to link it to the Flow Run that affected it. It would be ideal. The only way is if I create a Metafield.

 

As an example, check input fields. It allows you to leave a date but nothing else.

 

https://shopify.dev/docs/api/admin-graphql/2024-01/mutations/publishablePublish

Building a Sustainable Marketplace from Scratch
Replies 3 (3)

Kalen_Jordan
Shopify Partner
737 34 128

A metafield would probably be the way to go here. Is there a reason you don't want to go that route?

wonena-dev
Shopify Partner
21 0 7

I am learning to return additional fields like the metafield as a Payload Return. It looks like the probable way I'd go

Building a Sustainable Marketplace from Scratch

PaulNewton
Shopify Partner
7158 633 1488

There's no annotations, or proper logging system in shopify.

Nor ,afaik,  no publicly documented introspection for flow or variables for our usage like process run id etc that we could use to generate navigation links to runs or the flow itself; research needed.

 

So it's either metafields as Kalen noted, with like a datestamp and harcoded string of the flow name(label).

Or if "stamp" is not just an indicator but a pseudo log use metaobject entries.

 

Also see

https://help.shopify.com/en/manual/shopify-flow/monitor 

 

Contact [email protected] for the solutions you need


Save time & money ,Ask Questions The Smart Way


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Thank Paul with a Coffee for more answers or donate to eff.org