Skip to main content

4 posts tagged with "ampscript"

View All Tags

Rafal Wolsztyniak

Tips

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:

  • How I'm a big fan of the console.table() function in client-side JavaScript for debugging
  • What the dreaded Error 500 message on a page without SSJS or Ampscript teaches us about proper testing and the CloudPagesURL() function
  • How data binding can be used to create a basic logging mechanism writing personalized values with the Update Contact Block in Journey Builder

Rafal Wolsztyniak

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.

The game is simple and I couldn't help but wonder what it would take to recreate it Marketing Cloud. The game itself uses JavaScript, so doing it in SSJS would be pretty much redundant, so I decided to recreate it in Ampscript.

Needless to say:

Rafal Wolsztyniak

Have you ever wondered what fun things could be built with pure Ampscript?

Yeah, Neither have I.

Yet here we are and you can read about the inspiration for this self-assigned exercise and the process here: Ampscript Tic-Tac-Toe

For a limited time, you can also just go straight to the game and play it in two modes:

  • Single Player against the super clever yourself "AI" I stitched together with a bunch of conditional statements
  • Local Multiplayer against another player at your device or yourself.