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

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

Loops in AMPscript and Server-Side JavaScript

In programming languages, loops are a basic, yet a very powerful and indispensable concept. They shorten the code and reduce the need to repeat tasks. A loop is a set of instructions to be executed until a certain condition is met. In this article, we will focus on the most fundamental kind of loop, the …

Continue reading Loops in AMPscript and Server-Side JavaScript

Introduction to Triggered Sends

After reading this article you will be able to: Create a triggered email,Create a triggered email interaction,Track and log sent triggered emails,Personalize a triggered email, Trigger an email from Marketing Cloud using various methods,Trigger emails from Sales and Service Cloud. Understand Triggered Sends in Salesforce Marketing Cloud A triggered email is a message that Marketing …

Continue reading Introduction to Triggered Sends

Update multiple non-sendable Data Extensions to be sendable

In order to programmatically update the settings of an existing Data Extension, we will interact with Salesforce Marketing Cloud's SOAP Web Services API using WSProxy. Code snippets in this article will show you how to update a Data Extension, so that a non-sendable Data Extension is turned into a sendable Data Extension, but you can …

Continue reading Update multiple non-sendable Data Extensions to be sendable