How determine in Shopify flow discounts by Shopify line item script?

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

IvGordiichuk_3-1663232256322.png

Thank You