Workflow/Tag orders in case customer has previous orders with different email

Workflow/Tag orders in case customer has previous orders with different email

AhmedZ
Visitor
2 0 1

Hello, I am trying to do a workflow to tag orders for customers who have previous orders (with different email address but same Mobile number)

 

trigger: Order Created

Action: getorderDate -----> Advanced query: order.phone:"{{ order.phone }}" AND -order.email:"{{ order.email }}"

Action: Count

Action: Add order tag "X"

 

the workflow is always giving me true condition and tag all orders whether the conditon is fulfilled or not.

 

Can anyone help? 

Reply 1 (1)

RPiii
Shopify Staff
137 24 39

Based on your description, the workflow will start when an order is created, then return a list of orders that use both the same email and phone number, then count the number of orders, then add order tags to all those orders. Where is the condition and what are you checking for?