Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I am trying to specify to have some product variants be auto-added via Shopify Flow.
What I have done is:
- Start when: "order created"
- Check if: "tags is equal to add_extra_product"
- Do this: "Add order line item"
At the right panel, I am trying to specify "Product variant GID" with the existing product variant, but it always throws an error "This value is not a product variant GID".
Solved! Go to the solution
This is an accepted solution.
Try this format:
gid://shopify/ProductVariant/<ProductID>
You can also refer to this Developer Doc:
https://shopify.dev/api/examples/order-editing
I hope this helps!
What is the GID you're using?
I have tried both options: productID and variantID.
I have pasted these IDs from the below-formatted URLs.
https://<brand>.myshopify.com/admin/products/<productID>
https://<brand>.myshopify.com/admin/products/<productID>/variants/<variantID>
This is an accepted solution.
Try this format:
gid://shopify/ProductVariant/<ProductID>
You can also refer to this Developer Doc:
https://shopify.dev/api/examples/order-editing
I hope this helps!
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025