Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi.
I want to add promo tag to order by Shopify flow.
Can flow can detect if Shopify line item script worked with cart?
The line item script itself cannot add tags to the order. That's why I want to create a flow. If the line item script has applied a discount, add the promo tag to the order.
But in flow settings I did not find how to determine the discount given by the line item script.
I can define a discount in a flow, but I also have other discounts (coupons, ..).
I only need the discounts applied by the line item script.
The only way currently to detect if a script ran via Shopify Scripts is to search the text that appears on the event timeline that shows up under the Order. It's available in Flow via `order / events`. I think the message field would work.
https://shopify.dev/api/admin-graphql/2022-07/interfaces/Event
Thanks! I'll test.
Solution didn't work. I really hoped it would work. Maybe I didn't set it up correctly?
My order with script message
Thank You