Expand my Community achievements bar.

SOLVED

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

Avatar

Level 1

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.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

3 Replies

Avatar

Employee Advisor

@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/...

Avatar

Correct answer by
Community Advisor

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

Administrator

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!



Sukrity Wadhwa