Start the Deluge Code and Retrieve the Base URL

In the next few videos, I will have sections of code already written out to save time, but you can view the full code here on our GitHub.

As per best practice, we “get” the Contact record to easily have access to other variables in the code, like email or start/end date. Don’t forget to define the contact_ID as your argument.

Because we’re working with URLs, you will add in some URL parameters for the custom URL to work properly. See a list of encoded characters here.