Solved

How can I reference an event properties value (OrderId) in the conditional split of a metric based flow?

  • 20 February 2021
  • 1 reply
  • 87 views

Badge

Hi,

I want to create a flow based on an event called “Preorder”, for example:

{
"token" : "xxxx",
"event" : "Preorder",
"customer_properties" : {
"$email" : "email@gmail.com"
},
"properties" : {
"OrderId" : "12345",
"PaymentLink" : "https://gmail.com/"
}
}

I want to exclude customers from receiving following emails in this flow if the customer profile had a property called PaidOrders and this property contains the order ID coming from the trigger event:

PaidOrders: ["12345", "abcdef"]

 

This is how my flow look like:

 

 

 

The conditional split setup:

 

You see now that my problem is how can I reference an event properties value (OrderId) in the conditional split config

 

I always get the No branch email, What am I doing wrong?

 

This is a screenshot of the customer profile properties:

 

 

Help please?

 

 

 

 

 

icon

Best answer by caroline 22 February 2021, 15:45

View original

1 reply

Userlevel 5
Badge +4

Hi @mohamed.saleh,

Unfortunately, you cannot reference a dynamic variable/use Django syntax within the logic of a conditional split. You can only look for a static value (e.g. contains “123”, not contains {{event.orderID}}).

Best,

Caroline

Reply