Hi guys! I would like to perform a task on Shopify flow but it keeps running forever without giving out a result and also it’s not doing the action at all.
First: I have created a custom metafield with definition into the products section (Namespace: quantity) (Key: incoming) (Type: Integer) (Available Storefront API)
In Shopify Flow I want to update this metafield when the inventory is updated. So I chose the trigger (Inventory quantity changed) then as an action → Update Product Metafield
But when running the workflow it keeps running and there is a loading animation that keeps rotating… no action… no error message. Plus, when I choose to tag metafields value into product it works… (so it means that Shopify flow has access to this metafield…)
Can you please help me with this? I provide screenshots.
Yes now it works!!! Super great. I have only one problem right now…
When I put variable “incoming” into the metafield’s value it gives me this error. I don’t understand because this variable returns an integer and my metafield is type integer…
If you notice, you have white space around that, which means that 4 is actually a string, 4. Unfortunately with liquid you need to remove white space from your code so that it doesn’t output empty strings. I think it would work but just making that last “if” statement inline, and making sure there are no newlines after the code block