Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Send Functions

These functions allow you to access and control how emails are sent from your Marketing Cloud Engagement account.

In your server-side JavaScript code, first load the core library using the syntax below:

Use this sample code as a model for your own server-side JavaScript code.

To interact with an existing send via server-side JavaScript, you must first initialize the object. This code initializes a send with a send ID of 12345:

Once you initialize the send, you can use the other applicable functions.