Hello, %%FirstName%%
This is a space for exploring what can be done with Salesforce Marketing Cloud using Ampscript, Server-Side JavaScript (SSJS) and its APIs.
What’s new?
-

Better Formatting of Ampscript and SSJS Error Messages on CloudPages
When building various solutions on CloudPages like consent management centers, surveys or tools used be internal teams, you might run into errors during the development phase. Here’s a code snippet for you if you don’t like feeling like trying to find a needle in the haystack of code that could land in the output of…
-

Solving the Journey Builder SMS Reporting Puzzle
Learn how to merge the text message parts from Mobile Connect sends done via Journey Builder using the _SMSMessageTracking data view.
-

Using NotebookLM to Learn About Data Cloud Credit Consumption
Organize your knowledge in one place and ask a bot about the specifics. No time to read? Create an AI podcast to explain a concept contained in a notebook
-

Deep Dive into the Update Contact Activity and Data Binding
Key Notes from the Journey Builder Deep Dive Session I presented on September 24th, 2024 for the Salesforce Marketer Group (Marketing Cloud), Phoenix, US
-

Why SFMC Experts Share Their Top Content
On September 5th, 2024, I had the privilege to participate in a panel of experts hosted by the Salesforce Marketing Cloud Developers Group asking why people share their content online. You can view the recording of the session here: 🤦♂️ My earbuds died right at the end of my part, but that didn’t disturb the…
-

Basic Scripts to Work with HTTP Request Properties in SSJS
I developed a script to make working with HTTP requests on CloudPages and in Code Resources easier. Of course feel free to edit and remove any properties as as necessary – you might not need each of the listed properties in every script. Example Response This would be returned after hitting a code resource with…
-

Create a Landing Page at the Root of your Private Domain
This is just a lucky accident that turned into discovering something I haven’t seen before. Slow Monday morning here, I’m making a new Landing Page and I forgot about the URL and Site Key fields, before I clicked Next. Lo and behold, I see something I haven’t seen before: This really does seem like a…
-

Retrieving Ghost Data Values from Deleted Data Extension Fields
Would you be terrified to learn that removing fields in data extension does not seem to remove their values from existing records? While working with SSJS a while ago, I discovered that the LookupRows function is able to retrieve “ghost data”.
-

HTML Table in Ampscript
Tabularize all the things! If you find yourself building internal tools like for non-SFMC users, you might need to display some data from SFMC in an table (either on a CloudPage or sent in an email to your team). Rather than reinvent the wheel each time the need arises, I decided to build a reusable…
-

I’m a 2023 Marketing Champion!
🏆 Personal achievement: Unlocked! It feels unbelievable to be able to say this: I have been selected be one of the amazing Marketing Champions representing Salesforce Marketing Cloud! 🎉
-

SFMC Tips and Tricks Challenge
Sharing the wisdom Michał Rzepka started something amazing with his #SFMCTipsAndTricksChallenge on LinkedIn in which the members of the SFMC community were asked to share 3 tips about the system. Lots of people responded already sharing great tips for beginner and advanced developers alike. So, it’s my turn to share: console.table() is great for client-side debugging While developing…
-

Creating a Journey Builder log with Data Binding in the Update Contact activity
Data Binding Let’s assume you want to introduce some basic logging in your journeys and would want to write who entered a particular path. There’s no communication on that path and you don’t want to rely on code running while the message is prepared (some people may be opted-out after all), so you turn your…
-

Ampscript Countdown
I wanted to include a countdown in my Ampscript Wordle clone which would display the remaining time in of the following ways: Seemingly simple this one piece of information required a lot more code than I expected at first as we need to: Note I’ll admit this normally should be done with client-side JavaScript displaying…
-

Ampscript Wordle
Recreating the instant classic You might already be one of those people whose daily ritual includes solving the daily Wordle puzzle. Developed by Josh Wardle, this game has become a viral sensation and has probably made millions of people scratch their heads while searching for the right 5-letter word and testing their knowledge of their English vocabulary.…
-

Excelling at Dates
Pivot! Pivot! Pivot! If you have ever wanted to analyze some data exported from Marketing Cloud in Microsoft Excel, you might have noticed most dates are displayed incorrectly: some behave like strings and some are dates that appear to be different than you had in your data extension. Why Can’t Excel Read SFMC dates? Before…
-

Ampscript Tic-Tac-Toe
Have you ever wondered what fun things could be built with pure Ampscript? Yeah, Neither have I. I only thought about it for work. Inspiration Last year I was inspired by a documentary about video game creators in the 80’s and was amazed how they had to creatively work around the limitations of the hardware…
-

Hello, SFMC World!
Welcome to yet another technical blog about Salesforce Marketing Cloud from a certified Marketing Cloud Developer with almost 5 years experience and a history of short affairs with various programming languages and frameworks. There’s not much here at the moment, but rest assured that I will do my best to deliver future content the use…
-

Fizz Buzz Boing Bang Challenge
Participation Award > Nothing In September I took part in the FizzBuzzBoingBang coding challenge organized by Cameron Roberts on his blog. Well, I didn’t do as well as I thought, but I still was able to get a honourable mention (be sure to head there to see a nice trick with the IIF() function that could be useful in next challenges…
-

One More Time Challenge
I won a coding challenge! was surprised to learn my code won in the “Efficiency” category of the “One More Time” coding Challenge hosted by the amazing people of HowToSFMC. The goal was simple: recreate the lyrics of the classic Daft Punk song using only Server-Side JavaScript in Salesforce Marketing Cloud which turned out to…


