liquid
49 TopicsI've created a beginner liquid 'for loops' tutorial. Would love some feedback.
Hi all I've started working on a series of videos to help unpack some liquid terms to help others and teach myself along the way. After recently needing 'for loops' to solve a problem I started by making a tutorial on those. Even though this video is a smidge more advanced, I plan to do quite a few videos, especially for beginners. Would love you to check it out, write comments, subscribe, and provide any feedback on ease to follow, length, or any thoughts at all. I want these to be a useful tool for all Braze (and liquid) users. Discover the power of liquid for loops in Braze: Beginner tutorial - YouTube882Views10likes6CommentsHelp: Liquid logic, conditional messaging & nested custom attributes.
Hello! I need help understanding where i'm going wrong with my conditional messaging. Is it possible to search and dynamically pull a specific value from a nested profile using Liquid code in a Braze email? Example: Users have a nested custom attribute called 'Colour'. User 1 is associated with two profiles: Company A (nested profile [0]) and Company B (nested profile [1]). The value of 'Colour' for Company A is 'Green', while for Company B it is 'Purple'. How can I dynamically retrieve the 'Colour' value for a specific company (e.g., Company A)? Note: I haven't used [] indexing as I want to look across all associated profiles per user to filter down for the correct value (example above). And the testing code: {% assign found = false %} {% for Partner_Name in custom_attribute.Profiles %} {% if Partner_Name == "Onsi" %} Your partner ID is {{custom_attribute.${Profiles}.Partner ID}}. {% assign found = true %} {% endif %} {% endfor %} {% unless found %} You do not have a partner ID associated with this account. {% endunless %} Thank you for any help or suggestions you have!166Views4likes5CommentsBraze Tutorial: Abandoned Cart Email & Liquid For Loops
Abandoned Cart Emails are a necessity to Marketing teams; however, they can be a bit tricky to set up! Check out this video for a full tutorial on how to set up Abandoned Cart Emails using Liquid For Loops ➰ 🗣️ WATCH FULL YOUTUBE VIDEO HERE 🗣 https://youtu.be/mMqrHqeYHto403Views4likes0CommentsA Beginners Guide to Braze Liquid Language
Hi All I've noticed there have been a few questions about basic liquid concepts in Braze, especially language localization. To support this, I have put together a complete beginner tutorial video for anyone wanting to get started with liquid specifically for Braze (which everyone should because it's magic 🪄). Topics I cover: - The basics (objects, filters, tags) - Adding first names - Capitalizing first names - Setting defaults when there are no first names - If / else statements - Basic language localization I have tried to include as many useful real-world examples as I could for beginners to get you going. I hope it is useful for this community and feel free to share it with anyone you know who is new to Braze. A Beginner's Guide to Braze Liquid: Mastering the Basics - YouTube 😊600Views3likes2CommentsBraze Connected Content Deep Dive (W/ Cat Facts!)
Cat Facts are back! There's so many cool use cases for Connected Content, and if you want to get started with some practice right away, the Free Public Cat Fact API is our go to! In this video, we test what happens if we use a broken URL, and where we can get some more error insights inside the Braze Dashboard. Did you know? - All cats need taurine in their diet to avoid blindness. Cats must also have fat in their diet as they are unable to produce it on their own. - Relative to its body size, the clouded leopard has the biggest canines of all animals’ canines. Its dagger-like teeth can be as long as 1.8 inches (4.5 cm). - Despite imagery of cats happily drinking milk from saucers, studies indicate that cats are actually lactose intolerant and should avoid it entirely.10Views1like1CommentBraze Tutorial: How To Send A 6-Month Renewal Reminder Email
Happy Friday everyone! A fun video we made last week on how to send a 6-month reminder email. Understanding the date filter and unix time really unlocks SO many different time-related use cases. And while it still feels hacky… “abort everyday except one” is still the solution for many use cases also 🙏🏻 Let us know any questions!46Views1like0CommentsLiquid arrays personalization
Hello everyone I'm trying to implement this liquid code in one of my templates: {% assign combinedResults = canvas_entry_properties.${data}.results | concat: canvas_entry_properties.${data}.featuredResults %} {% assign results = combinedResults | sort: 'totalEstimatedCost.amount' | reverse %} The arrays canvas_entry_properties.${data}.results and canvas_entry_properties.${data}.featuredResults are two arrays that contain a list of offers, with each offer having a name, an ID, and a totalEstimatedCost.amount Using this Liquid code, I want to first create a third array called combinedResults that merges the offers from both canvas_entry_properties.${data}.results and canvas_entry_properties.${data}.featuredResults. Then, I want to sort this combined array so that the offers are displayed in descending order based on totalEstimatedCost.amount, from the highest to the lowest price However, the issue is that the displayed list first shows the two offers from the featuredResults array sorted in ascending order (from the smallest to the largest price), followed by the five offers from the results array sorted in descending order (from the largest to the smallest price). Do any of you know why this could happen? the structure of the original arrays is the same. Thank you in advance!98Views1like2CommentsAudience 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!Solved139Views1like4CommentsPersonalization with Liquid using purchase events on order level
Hello, I am trying to personalize an email based on purchase event on order level. Here it says that event properties schema could not be generated for purchase events, but that the nested data is supported by purchase events. Is nested objects even supported for purchase events on order level? This is the event that I am using: { "purchases": [ { "external_id": "2023_new", "product_id": "Completed Order", "currency": "USD", "price": 219.98, "properties": { "products": [ { "name": "Monitor", "category": "Gaming", "product_amount": 19.99 }, { "name": "Gaming Keyboard", "category": "Gaming ", "product_amount": 199.99 } ] }, "time": "2024-06-20T13:59:30+01:00" } ] } So can you please clarify how can we add liquid tag in order to display the name of the first product - "Monitor"? Looking forward for your reply! Many thanksSolved831Views1like6Comments