Contents
Where do I use SSJs in Marketing Cloud?
In Marketing Cloud SSJS, we use functions primarily from Platform and the Core Libraries. Do watch out for more articles about these topics on Greg’s site and HowToSFMC.com coming up in the near future!
How does server side JavaScript work in Marketing Cloud?
Instead of using the browser to render the JavaScript on the client-side computer, Marketing Cloud executes the JavaScript on the server when rendering. While you can duplicate the functionality of AMPscript using SSJS, SSJS does not work with the DOM and will not function with exterior libraries.
Can you use SSJs on a landing page?
While you can duplicate the functionality of AMPscript using SSJS, SSJS does not work with the DOM and will not function with exterior libraries. Instead, use libraries provided by Marketing Cloud to create SSJS that works within landing pages.
How to create marketing cloud events in Java?
Events – Retrieve Events on Marketing Cloud are: click, ForwardedEmail, ForwardedEmailOptIn, HardBounce, NotSent, Open, OtherBounce, Sent, SoftBounce, Survey and Unsubscribe. Tracking – Clicks.Retrieve, Retrieve and TotalByInterval.Retrieve (type,Open, Click , Bounce)
What can I do with SSJs in script activities?
Let’s say we have 2 Data Extensions as follows: Now the company has a requirement to have the EventDetailsDE updated every night with the Coupon information for each Event ID: This can be easily achieved with a fairly simple script in SSJS as shown in the following section.
What can I do with SSJs in Automation Studio?
You can also refer to the official Salesforce SSJS documentation for Marketing Cloud for all the functions available under Platform and Core libraries. Now that you have an idea about SSJS, let’s dive into Script Activities in Automation Studio. What is a Script Activity?
Where does SSJs code need to be enclosed?
Let’s take a look at a simple SSJS code that we can use to solve the above requirement: The SSJS code must be enclosed within a