How to utilize polyfill functions in SFMC

Marketing Automation, Salesforce Marketing Cloud, SFMC Tips & Tricks
1 minute read

Development in Salesforce Marketing Cloud’s SSJS can be very restrictive, especially when you’re already familiar with the latest EcmaScript6 JavaScript features.

We can’t use object spreading or curly bracket functions {}=>() and many, many more. However, we can introduce certain very helpful functions that don’t exist in older versions of JavaScript. The way we do it is by using polyfills.

A polyfill, short for “polymer fill,” is a piece of code that provides the missing implementation of a feature that a web developer can rely on to work consistently across different browsers. It “fills in” the gaps, making it possible to use modern JavaScript features or methods in older browsers that don’t support them. Polyfills are particularly useful when working with Salesforce Marketing Cloud’s SSJS.

With AI tools like OpenAI’s chat GPT we can ask it to produce any function introduced in later EcmaScript version in the version of ES used in SFMC platform.

In your future SSJS endeavors e.g. with arrays, when you find yourself wanting to utilize functions like Array.map() but realize it’s not available in ES3, don’t fret. The solution is simple – seek out a polyfill for it.

Salesforce Marketing Cloud Tips
Marketing Automation, Salesforce Marketing Cloud, SFMC Tips & Tricks

Cannot add attributes to data extension

less than a minute read

Occasionally, as a Salesforce Marketing Cloud administrator, lurker, practitioner, or bystander, you encounter a seemingly simple yet potentially time-consuming task—adding attributes to a data extension. While it may sound straightforward, the process is not always as simple as it appears. When adding or editing data extension attributes in Salesforce Marketing Cloud, you may face a […]

Continue reading
Adobe Campaign Classic tips
ACC Tips & Tricks, Marketing Automation

Fix delivery template error in Alert activity

1 minute read

Sooner or later, you will be tasked with creating alert notifications in Adobe Campaign Classic. Technical notifications are very useful, especially for monitoring technical processes. Alert notifications can be used to notify certain groups or operators when, for example, there was no file on SFTP or a particular marketing campaign has not had any recipients […]

Continue reading
Salesforce Marketing Cloud Tips
Marketing Automation, Salesforce Marketing Cloud, SFMC Tips & Tricks

How to bulk change data extension fields

less than a minute read

As a Salesforce Marketing Cloud admin, you will learn that certain operations on data extensions are better handled via Email Studio, while others are more suited for Contact Builder. Today, I will explain when to use each method for adding or changing fields in a data extension. My preferred way to add or change fields […]

Continue reading
Salesforce Marketing Cloud Tips
Salesforce Marketing Cloud, SFMC Tips & Tricks

How to add indexes to the data extensions

1 minute read

Maybe the title got you a bit curious because there is no such thing as adding indexes in Salesforce Marketing Cloud data extensions. But what can be done instead? If the indexes cannot be managed by the admins and cannot be requested from support we can try to apply one of the following workarounds. Filtered […]

Continue reading
adobe campaign classic how to use sysfilters in data schemas
Adobe Campaign, Marketing Automation

How to use sysFilters in data schemas

2 minutes read

When you run multiple business units on a single Adobe Campaign Classic application, it is beneficial to restrict operators from accessing other business units’ data. We all know that restricting data on form views and with folder access restrictions may not always be successful. The only bulletproof method of managing write or read access rights […]

Continue reading
Adobe Campaign Classic tips
ACC Tips & Tricks, Adobe Campaign, Marketing Automation

Load the first workflow in campaign view

1 minute read

Every campaign manager, sooner or later, finds their way into marketing automation tools like Adobe Campaign Classic. However, one common challenge, for some order loving campaign managers, is encountered when navigating through campaign workflows. By default, the system loads the first-added workflow as a first on the list, which can lead to confusion to some. […]

Continue reading
Salesforce Marketing Cloud Tips
Marketing Automation, Salesforce Marketing Cloud, SFMC Tips & Tricks

Fix HTTP post request wrong encoding

1 minute read

Recently, while working with the double opt-in process that employs an API to trigger transactional messages, I encountered an issue where Latin characters, characters with accent, were not captured correctly in the triggered send data extension. I have found that the SFMC HTTPPost uses, by default, WindowsCodePage 1252 encoding, which can cause issues with accented […]

Continue reading
Salesforce Marketing Cloud Tips
Marketing Automation, Salesforce Marketing Cloud

Fix email preview: Out Of Memory Exception

1 minute read

Sometimes, it happens that when you try to preview your email in Salesforce Marketing Cloud, you could encounter a system.OutOfMemoryException. But don’t worry; it’s not your laptop’s fault, even if it’s as old as mine. This error typically means that your template personalization script is overly complicated and needs some attention. You have two options: […]

Continue reading
Adobe Campaign Classic tips
ACC Tips & Tricks, Adobe Campaign, Marketing Automation

Change delivery code after it was sent

1 minute read

Sometimes, it happens that you execute a campaign, and you realize that some information on the delivery is simply not correct. But don’t worry! Before your analysts pick up the raw data, we can change it at any point. You might have tried to change it from the campaign dashboard but found that the data […]

Continue reading