Перейти к содержимому

Wonder how to debug your SSJS code in Marketing Cloud?

email360

0:00 / 0:00

Wonder how to debug your SSJS code in Marketing Cloud?

1 249 просмотров · 4 г. назад
email360
90 подписчиков
1 249 просмотров · 4 г. назад
Sascha Huwald from email360 will show you how to use the email360 SSJS library for Salesforce Marketing Cloud to debug and log your SSJS code! The SSJS library is a free, open-source library that takes learnings from years of working with server-side Javascript and merges it in one library. It takes the repetitive and complex tasks and simplifies them, enabling you to get the most out of Salesforce Marketing Cloud. Log4j hierarchy: OFF FATAL ERROR WARN INFO DEBUG TRACE Contact:   / sascha-huwald   The library GitHub https://github.com/email360/ssjs-lib Code Sample: var log = new logger("demo"); log.configure = { appenders: [ { type: "dataExtension", level: "INFO" }, { type: "console", level: "TRACE" }, { type:"html", level:"DEBUG" }, { type: "http", level: "ERROR", url: "https://www.toptal.com/developers/pos...", method: "POST", contentType: "application/json", payload: { someAdditionalPayload: "payload" } } ] }; try { log.debug("This should be seen in console and html"); log.trace("This trace should only be in console"); log.info("INFO: html, DE and console"); log.error("This is an error: in all"); } catch (e) { log.fatal(e); }