Liquid
41 TopicsAudience Path through event properties
Hello community! I need your help to set up a Canvas Flow: Context: In our subscription we are customising the unsubscribe flow based on the reason. We register this reason as an event property of the event that triggers the flow ( subscription cancel complete). Problem: It does not find the way to direct the users in a flow or another depending on the property of the event, since the ''audience path'' tool does not allow to split by event property. How would you do it? I could do it through conditions and liquid, but the flows are not exactly the same for all properties/reason. Thank you very much!Solved71Views1like4CommentsLiquid Country Help Please!
I am trying to create a piece of dynamic content that shows for multiple countries. I have created this code which worked a few weeks ago, but now isn't working: {% if {{${country}}} == 'ID' and 'AE' and 'TR' and 'EG' and 'SA' and 'PK' and 'BD' and 'MY' and 'NG' %} I have tried with or and that doesn't work either! Any help would be massively appreciated, thank you.844Views1like6CommentsLoop through a catalog to display the product a user has as a custom attribute
Hello, So I am trying to display some Liquid logic into an email template. The idea is that I have a catalog named house_properties with fields: id, name and description. Each user has a custom attribute called user_product_id which we should use in the Liquid code to display the name of the product from the catalog if the two id's are the same. This is the Liquid code I have been using, but apparently is not working. Can someone please let me know what am I missing here? {% assign user_product_id = {{ custom_attribute.${user_product_id} }} %} <!-- Loop through each row in the catalog --> {% for row in house_properties %} <!-- Loop through each item in the current row --> {% for item in row %} <!-- Check if the item name contains the user's custom attribute --> {% if item.id == {{ custom_attribute.${user_product_id} }} %} {{ item.name }} {% endif %} {% endfor %} {% endfor %} Thank you in advance! Elena428Views0likes4CommentsHow to change the date format in an email using liquid
Hi everybody, greetings from Germany! I want to display the date format of a custom property in an email in a different way. In the propery, we save the date in this format: YYYY-MM-DD hh:mm:ss. I'd like to display the property in the email in this format: DD.MM.YYYY Does anybody know how I can achieve that? Thanks so much for your support!Solved696Views0likes5CommentsDyanmic barcodes and/or QR codes
I've been looking into the Braze documentation looking for a native solution for showing dynamic barcodes/QR codes in email templates, but haven't found anything. Is anyone aware of this function in Braze/Liquid Logic, or a viable alternative that can be leveraged via API's or other supported methods, that doesn't break the bank? Thanks122Views0likes3CommentsCatalog Selections personalization based on array data type
Hello ,I am using Selections and want to display some personalization into an email, but apparently it's not working. The selection is taking a custom attribute of type array on the user profile and then should display both of the values in the array from the catalog. I have used the personalization feature in the email template, but it's not showing up any data. The Liquid code is as follows: {% catalog_selection_items TestNew NewSelection %} {{ items[0].property_name }} {{ items[1].property_name }} {{ items[2].property_name }} The selection looks like on the image: So basically I would like the selection to have all of the properties from the catalog that have withdrawn status FALSE and also have all the values in the array of property_instructed_id custom attribute. In this case the user I am testing with has 2 values in the array, but it's not showing up neither of them. Can you please help out on what might be the issue here? Many thanks132Views0likes1CommentCan email address be used as a custom attribute in liquid?
Hi I am writing liquid code to exclude people with yahoo and gmail addresses. When I added the code to a campaign - this is the response that I received - "The following variables are not valid: email_address. If you attempted to use a custom attribute, it must use the format {{custom_attribute.${your_variable}}}" This is the code that I have ={{custom_attribute.${email_address}}} include “yahoo” The format of the custom attribute seems on point so what is not working with it'? Is it not possible to choose "email_address" as a custom attribute in liquid?Solved362Views0likes1Commentcomplex Liquid with percentages
Calling all Liquid Masters👀 (prob my use case is not even that complex, but bear with me) Is it possible to create a Liquid syntax that will spit out a result which is the percentile difference between 2 values? Let's say there's an attribute called 'last_week_total_meals' with value 5 and another one 'this_week_total_meals' with a value of 3, what liquid can I code to show that there's a -40% difference between both values?100Views0likes1Comment