Expand my Community achievements bar.

Assistance Needed for Sending Test Email via Delivery API Method

Avatar

Level 1

Hi All,

I have a requirement to send a test email to a user using the delivery API method (submit delivery).

Adobe Campaign will receive all campaign and recipient email information from the upstream part of the SOAP implementation. We (AC) just need to receive that data and deliver the test email to the recipient's email address within a few minutes.

Any leads or suggestions on how to achieve this would be appreciated.

Thanks in advance!

@ccg1706 @ParthaSarathy @_Manoj_Kumar_ @Craig_Thonis @DavidKangni 

5 Replies

Avatar

Community Advisor

Hello @PSNe,

 

You can use SubmitNotification method of delivery schema to do so. 

Here is documentation of the method : click here 

 

Br

Avatar

Level 1

Hi @Amine_Abedour  / @ccg1706 ,

Thanks for your response. How can I replace the dynamic personalization values in the email content during delivery before calling the submitDelivery function? Using submitDelivery, I can send out the delivery, but I have a use case where I receive the HTML from an API and need to personalize it based on target attributes.

 

Thanks!!!!

Avatar

Level 7

Hi @PSNe

 

I share with you a possible approach, you will need to use your API to get the HTML template, pull in the personalization data that you need, this could be from you database or doing and API call with the specific recipient information that you need.

 

In a JavaScript activity before calling submitDelivery, change placeholders in the HTML with current values. I share with you a solution as a guidance:

var htmlContent = "<html>...Hello %%name%%...</html>";//Example with HTML 
var targetData = { name: recipient.firstName };
htmlContent = htmlContent.replace("%%name%%", targetData.name);


//Replace with real data

 

 

Once the HTML is updated attached it to the submitDelivery to send it out. In this way, each recipient gets a version of the email that's personalized just for them.

 

I leave you with some documentation links: 

Personalization  

Personalization dynamic content 

JavaScript scripts and templates 

Regards, 

Celia

Avatar

Level 1

Thank you for the suggesting approach. I will try to work on these. 

Avatar

Level 7

Hi @PSNe

 

You can follow @Amine_Abedour approach.

 

Additionally you can use SubmitDelivery Method .

 

Take into account that you need to be sure when you are doing the SOAP request to pass the correct information via the API.

 

Kind regards, 

Celia