How to send a transactional message using javascript via a web app

Avatar

Avatar

BobbySheridan

Avatar

BobbySheridan

BobbySheridan

30-12-2020

Hello,

I am trying to send a transactional message through a web app that is designed to take email subscriptions. I have to overwrite the email being sent with an email that has a promo code attached. I have to do this using javascript in the workflow of the web app. The transactional message has been made, it's just a matter of the code. Sorry, I am new to this any help is appreciated. Thanks.

transactional message web apps

Accepted Solutions (0)

Answers (3)

Answers (3)

Avatar

Avatar

Sukrity_Wadhwa

Employee

Avatar

Sukrity_Wadhwa

Employee

Sukrity_Wadhwa
Employee

13-01-2021

Hello @BobbySheridan,

Were you able to resolve this query with any of the given solutions or do you still need more help here? Do let us know.

Thanks!

Avatar

Avatar

wodnicki

MVP

Avatar

wodnicki

MVP

wodnicki
MVP

01-01-2021

Hi,

 

If execution instance is same as your webapp instance, you can push Message Center events with nms.rtEvent.PushEvent(), with documentation here:

Otherwise use the HTTPSoapConnection or HTTPClientRequest class to call the exec instance, same method.

 

Out of curiosity, why use Message Center instead of nms.delivery.SubmitDelivery()?

 

Thanks,

-Jon

Avatar

Avatar

shelly-goel

Avatar

shelly-goel

shelly-goel

30-12-2020

@BobbySheridan 

I've not tried it though if you've created the transactional message, you can create an event (or batch) using a SOAP request from the web app as explained here:

https://experienceleague.adobe.com/docs/campaign-classic/using/transactional-messaging/introduction/...