There are many good libraries available that come with implementations that could be very handy while working on some of the complex manipulations within a workflow or even personalization. That includes:
- Moment.js – date library for parsing, validating, manipulating, and formatting dates
- Hash table – working with hash, hash map, unordered map or dictionary
- Lodash – working with arrays, numbers, objects, strings, etc
So, here are simple steps that can help you leverage these libraries within Adobe Campaign to address scenarios quite efficiently.
Step1: Download complete library
Browse the CDN URL of the library you want to use and download it to your local system. For this demo purpose, we are using moments.js hosted on URL:
**Assuming you have admin rights to proceed with this step.
Use “loadLibrary()” method to load the external library and straight away jump to address your scenario just like any other out-of-box standard library functions.