Skip to main content

I have an email template with lots of blocks in it. I’d like to hide these selectively to a user based on their previous purchase (Shopify) history with us.

Block A - Hide if customer has purchased product “ABC”
Block B - Hide if customer has purchased product “XYZ”
Block C - Hide if customer has purchased product “123”

I’ve hit a number of roadblocks trying to get this to work and want to make sure I understand if I’m on the right track here:

1. You can’t use previous event data in a flow. It seems like I can only use event data as the trigger of a flow and can use that trigger data in the show/hide logic, but I can’t access previous event data.

2. I can use custom properties as the basis of show/hide logic.

So to use custom properties for a user I need to make a flow that adds the custom data when triggered and can populate this with existing profiles. The limitation of this is: I need to make a separate flow for each SKU it seems? A flow can’t perform loops, only split off users in to groups. This wont work if a user buys three products at once and I want to create a property for each product.

I guess this is the where I’m at. I’m looking at the possibility of having to set up huge amounts of flows to handle assigning custom properties and am really hoping there’s an easier way to convert event data to custom properties. 
 

Hey ​@mvs 

Thank you for sharing your question here in the community,

  1. Yes you are correct, we can only use event data as the trigger of a flow and can use that trigger data in the show/hide logic and you can use previous data only by using conditional splits in a flow

instead of using show/hide logic, why not just create different emails with static product blocks?

so just add a conditional split and split based on Collections (instead of products) and if they purchased from these collections they will go through yes path and that email will have products relevant to that and so on for all the conditional splits that you want

I totally understand what you want and if they purchased 3 different products from 3 different collections, then it will go through the first definition in the conditional split where the condition is true. so yes this is not accurate, but this is the closest you can get without complicating things. 

So I see what you are trying to achieve, but i am afraid creating those flows is the only way to go. Instead look at the possibility to create flows based on collections, instead of each SKU/product, as that will complicate a lot of things.

Not sure if that helped, but I hope it did

Cheers

Arpit

 


Hey ​@mvs 

Thank you for sharing your question here in the community,

  1. Yes you are correct, we can only use event data as the trigger of a flow and can use that trigger data in the show/hide logic and you can use previous data only by using conditional splits in a flow

instead of using show/hide logic, why not just create different emails with static product blocks?

so just add a conditional split and split based on Collections (instead of products) and if they purchased from these collections they will go through yes path and that email will have products relevant to that and so on for all the conditional splits that you want

I totally understand what you want and if they purchased 3 different products from 3 different collections, then it will go through the first definition in the conditional split where the condition is true. so yes this is not accurate, but this is the closest you can get without complicating things. 

So I see what you are trying to achieve, but i am afraid creating those flows is the only way to go. Instead look at the possibility to create flows based on collections, instead of each SKU/product, as that will complicate a lot of things.

Not sure if that helped, but I hope it did

Cheers

Arpit

 

The main issue with this is in reality we have a lot more products than the three in my example. We’d have to manage a separate flow to handle every possible combination of products a user has previously purchased. 


hey ​@mvs 

I understand you have a lot of products but dont you have collections and split based on those collections? I feel that’s the best way to go about this for now. 


Reply