Exception handling in Salesforce Marketing Cloud CloudPages

Errors and exceptions are inevitable, no matter how defensively you code your CloudPage. There is always a possibility of a human error, for example if the person who creates and sends the email doesn't pass all the parameters to your CloudPage correctly. There are also things that sometimes cannot be prevented, for example Marketing Cloud …

Continue reading Exception handling in Salesforce Marketing Cloud CloudPages

Inventory of Data Extensions and their data sources

It's very likely that at some point in your career you will inherit or take over a Salesforce Marketing Cloud instance that has been set up and used by someone else in the past. In case it hasn't been well documented, it can be a struggle to understand all the data related processes and clean …

Continue reading Inventory of Data Extensions and their data sources

Simple Marketing Cloud App hosted on a CloudPage

DISCLAIMER: The Marketing Cloud App component has been designed for use with externally hosted apps. Use any alternative solutions presented in this article with caution. The settings we are going to use are simplified compared to the ones required by externally hosted apps, so make sure that only designated users have access to the apps …

Continue reading Simple Marketing Cloud App hosted on a CloudPage

Add subscribers to a Journey from a CloudPage using Fire Entry Event

Firing an Entry Event is great for injecting contacts into a Salesforce Marketing Cloud journey, especially if you need to be able to inject them from an external system or a website. It's also useful when you're creating a custom form on a CloudPage and would like to replicate the behavior of SmartCapture forms, which …

Continue reading Add subscribers to a Journey from a CloudPage using Fire Entry Event

Salesforce-style spinner for use on CloudPages

Spinners are loading indicators that can be shown when retrieving data or performing other operations. We will use a common spinner that Salesforce Lightening users are familiar with - the full documentation can be found here. This spinner is a Lightning component, which means that it cannot be directly used on a CloudPage. My awesome …

Continue reading Salesforce-style spinner for use on CloudPages

Two alternative ways of developing and testing CloudPages

As a Salesforce Marketing Cloud developer, you have certainly been caught up in this loop: Develop the CloudPage > Save and Publish > Wait 2, 3 or even 5 minutes > Check the results. Moreover, if you are not debugging correctly, you can lose a lot of time between looking for the problem and waiting …

Continue reading Two alternative ways of developing and testing CloudPages

Create a CloudPages form with an image/file upload option

The HTML <input> tag specifies an input field where the user can enter data. An input field can vary in many ways, depending on the type attribute. The <input> elements with type="file" let the user choose one or more files from their device storage. The file can then be manipulated using JavaScript in order to …

Continue reading Create a CloudPages form with an image/file upload option

Exception handling in Salesforce Marketing Cloud emails

"Hope for the best and prepare for the worst" should be every marketer's motto when it comes to creating contextual personalized content. Your company's reputation could be easily tarnished if you send out buggy emails, that's why exception handling should be an essential element of your email strategy. In this article, you will learn about …

Continue reading Exception handling in Salesforce Marketing Cloud emails

Custom profile and subscription center integrated with Sales/Service Cloud

In this tutorial, you will learn how to create a simple, yet fully customizable profile and subscription centre integrated with Sales and Service Cloud. Bear in mind, that the script utilizes a couple of standard and custom Sales/Service Cloud fields, which you will need to adjust based on your Salesforce CRM setup - the full …

Continue reading Custom profile and subscription center integrated with Sales/Service Cloud

Trigger SMS text messages using Server-Side JavaScript

In order to be able to programmatically trigger text messages, you will need to have MobileConnect enabled in Marketing Cloud's Mobile Studio. You will also need to be able to create an installed package in your Marketing Cloud account to interact with Salesforce Marketing Cloud APIs. If you have both in place, we can start …

Continue reading Trigger SMS text messages using Server-Side JavaScript