getPreviewParameters()

Overview

public struct function getPreviewParameters(
      required string template     
    , required string recipientType
)

Returns preview params (for use in replacing tokens in subject and body) for the given email template and recipient type.

Arguments

NameTypeRequiredDescription
templatestringYesID of the template of the email that is being prepared
recipientTypestringYesID of the recipient type of the email that is being prepared