How to send a transactional message using javascript via a web app | Community
Skip to main content
December 30, 2020
Solved

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

  • December 30, 2020
  • 3 replies
  • 2222 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Jonathon_wodnicki

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

3 replies

shelly-goel
Adobe Employee
Adobe Employee
December 30, 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/event-description.html?lang=en#information-returned-by-the-soap-call

Jonathon_wodnicki
Community Advisor
Jonathon_wodnickiCommunity AdvisorAccepted solution
Community Advisor
January 1, 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

Sukrity_Wadhwa
Community Manager
Community Manager
January 13, 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!

Sukrity Wadhwa