Why are customer tags not being updated correctly in my subscription flow?

DatingDivas
Tourist
3 0 0

Working on setting up a flow for a subscription product. The goal is that a customer can join at any time and they will always get BOXA then at their renewal BOXB and so forth. We want the customer contact tagged with each box they have received so they never get the same one twice. 

 

We have started a flow were it looks for the subscription product, then checks the tags on the customer. It works for BOXA (or seems to) but when the renewal is placed it doesn't catch the BOXA tag on the customer and updates for BOXA instead of BOXB instead. 

 

Here is what we have... 

 

Screen Shot 2023-10-10 at 7.21.59 PM.png

BOX A (BOX A wouldn't work with out it being 'non of the orders' & 'does not include'.)

Screen Shot 2023-10-10 at 7.38.31 PM.png

Then if they have the BOXA tag it should go to this condition for BOXB (and BOX B actions)but it doesn't... it continues the BOXA actions

Screen Shot 2023-10-10 at 7.38.49 PM.png

Again we want it checking customer tags for the previous tag to know what part of the flow to action. 

 

Any help?

Replies 7 (7)

Steve_L
Shopify Staff
11 2 3

I think it's the double negative in the BOXA condition that's causing the issue. Let's say the customer has the tag for BOXA. If you check that none of the tags do not include BOXA, and the customer has BOXA then it will return true. The reason it works on the first pass is because of how empty lists are treated in our underlying language.

I think the logic that you need is to check that none of the customer tags include (or are equal to) the tag.

Steve_L_0-1697034728160.png

 

Steve_L_1-1697034763495.png

 

To learn more visit the Shopify Help Center or the Community Blog.

CarmineT
Shopify Partner
86 2 25

Hi, 

 

I am trying to write a more simply workflow to find some customer with a particular tag,

 

but it does not work, as I got an empty string.

Instead I get a record with tag newsletter.

 

Any suggest on ths?

 

Jeff-Armstrong
Shopify Staff
29 2 1

It's hard to know without seeing the new workflow.
Steve's suggestion above should solve your issue though. Have you tried that solution?

To learn more visit the Shopify Help Center or the Community Blog.

CarmineT
Shopify Partner
86 2 25

I actually find out the logic does work. The issue is that it seems I can't search for added tags but only for tags that customer already have.

 

What I mean is that I added the tag "fake" to certain customer(they are test customer) but run the flow to find those with that tag and send an email.

 

Unfortunately the workflow does not work

It does work only when in the condition I do add

"newsletter" and not my added tag "fake".

Not sure how to fix this in order to "search" for added tagsdefault_tags.pngdefault_newsletter.png

 

I have attached 2 screenshots.

 

 

Jeff-Armstrong
Shopify Staff
29 2 1

The workflow will only find the tags that exist on the customer at the time the `Get customer data` step runs. The workflow in your screenshot is on a scheduled trigger, so it will only get data at that scheduled time.

If you also want to run a workflow any time a customer tag is added, try the Customer tags added trigger.

To learn more visit the Shopify Help Center or the Community Blog.

paul_n
Shopify Staff
1056 136 249

Also, because you said:

I actually find out the logic does work. The issue is that it seems I can't search for added tags but only for tags that customer already have.

There is a "tags_not:" filter you can use in queries to find customers who don't have a tag.

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.
CarmineT
Shopify Partner
86 2 25

Thank you.

By the way I found out why ma workflow wasn't working, I have to use correct query:

 

   tag:fake

 

where fake is my tag