email.sendCampaignEvent.promise(options)

Note:

The content in this help topic pertains to SuiteScript 2.0.

Method Description

Sends a single “on-demand” campaign email asynchronously to a specified recipient and return a campaign response ID to track the email. This is used for lead nurturing campaigns (drip marketing email). If the email fails to send, the value returned is –1.

Note:

The parameters and errors thrown for this method are the same as those for email.sendCampaignEvent(options). For more information about promises, see Promise Object.

Returns

Promise Object

Synchronous Version

email.sendCampaignEvent(options)

Supported Script Types

Client scripts

For additional information, see SuiteScript 2.x Script Types.

Governance

10 units

Module

N/email Module

Since

2015.2

Related Topics

N/email Module
SuiteScript 2.x Modules
SuiteScript 2.x

General Notices