Automation Email Action Object


An automation email action represents the email sent by an automation's triggered-emails action: its type, recipient and sender. The email content is managed separately, with Get Email Content and Set Email Content.

An action isn't identified by an ID of its own. An existing action is addressed together with the automation it belongs to, and a new one is described before it's added to an automation, so it has no identifiers yet.

Properties
emailTypestring

Type of the email, which determines whether contacts can unsubscribe from it.

Default: PROMOTIONAL


notificationTopicIdstringformat GUID

GUID of the notification topic contacts unsubscribe from to stop receiving the email.

  • PROMOTIONAL: A promotional topic.
  • BUSINESS_TRANSACTIONAL: A transactional topic.

Required if emailType is BUSINESS_TRANSACTIONAL. Can't be specified if emailType is BUSINESS_CRITICAL, since contacts can't unsubscribe from these emails.

Default: For a PROMOTIONAL email, the general promotional topic.


senderDetailsIdstringformat GUID

GUID of the sender details to send the email with, as in Assign Sender Details.

Default: The site's default sender details if they exist, and Wix-branded sender details otherwise.


triggerSchemaContactIdPathstringmaxLength 200

Path in the trigger payload schema to the GUID of the contact to send the email to. For example, contactId or contact.id. Usually the property marked with "identityType": "contact".

Supports a path of property names and array indexes, such as items[0].contactId, rather than an expression.

Default: The site owner.

Did this help?