Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

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

BobbySheridan
Level 1
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.

transactional message web apps
1 Accepted Solution
wodnicki
Correct answer by
Community Advisor
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
shelly-goel
Community Advisor
Community 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/...

wodnicki
Correct answer by
Community Advisor
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

Sukrity_Wadhwa
Employee
Employee

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!