trigger transaction email from Subscription WebApp

Avatar

Avatar

vendimb15716755

Avatar

vendimb15716755

vendimb15716755

07-01-2021

HI

we are using campaign classic v7 and need to send promo code within the confirmation email that is tied up to the subscription service.What is the best way to do that? If I include a Personalized block would it execute the code to pull into that template when the user sign up for subscription? Or I have to use the code Step into the subscription flow and trigger the Transaction email from the Java script code?

thanks In advance

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

10-01-2021

Hi,

 

Subscription email feature could work, but doesn't have access to targetData so may be harder to personalize.

Scripting-wise you can use nms.delivery.SubmitNotification(), which allows arbitrary personalization:

"""

It is possible to explicity[sic] define the target (in reality the content of the file used as the target):

<delivery>
  <targets fromExternalSource='true'>
    <externalSource>MsgId|ClientId|Title|Name|FirstName|Mobile|Email|Market_segment|Product_propensity1|Product_propensity2|Product_propensity3|Product_propensity4|Support_Number|Amount|Threshold1|
                    000001234|M.|Martin|Peter|0650201020|pmartin@neolane.com|1|A1|A2|A3|A4|E12|120000|100000
    </externalSource>
  </targets>
</delivery>

 

Thanks,

-Jon

Answers (0)