TriggeredSend (Platform)
→ voidInitiates a Triggered Send Definition to a subscriber with optional attributes. This is the Platform.Function wrapper for triggering sends.
Available in:
Email
CloudPage
Automation
Triggered Send
Syntax
Platform.Function.TriggeredSend(triggeredSendKey, emailAddress, subscriberKey [, subscriberAttributes])
3–4 arguments
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
triggeredSendKey |
string | Yes | External key of the Triggered Send Definition |
emailAddress |
string | Yes | Recipient email address |
subscriberKey |
string | Yes | Subscriber key |
subscriberAttributes |
object | No | Key-value object of personalization attributes |
Examples
Platform.Function.TriggeredSend(
"WelcomeEmail_TSD",
"jane@example.com",
"sub_12345",
{
FirstName: "Jane",
PromoCode: "WELCOME20"
}
);
For more control over triggered sends, including Data Extension attributes and publication lists, use the TriggeredSend Core library object.