Skip to content

testSendEngagementTemplate

Send one copy of a saved template to a chosen recipient, to see how it lands. The template’s medium decides the recipient: toEmail for email, toMobile for SMS, toAccountId for web push.

marketing {
templates {
testSendEngagementTemplate(
id: Guid!
toAccountId: Guid
toEmail: String
toMobile: String
): Boolean
}
}

The template.

The customer whose devices receive a web push template.

The email address an email template is sent to.

The mobile number an SMS template is sent to.

The Boolean scalar type represents true or false.