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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Send delivery via javascript and show in dashboard Panel

Level 1
Level 1

Hi all. 

I would like to know if there is any way to send email via javascript code and show the results in the dashboard panel.

This is my workflow:



Payload to send trought htttp request of each contact

"request_id":"<%= (String("xxx") +,/g, "")).slice(( String("123") +,/g, "")).length - 10) %>-<%= substring(1, 9) %>",
"original_dt":"<%= formatDate(new Date(), "%4Y-%2M-%2D") %>T00:00:00.000Z",
"start_at":"<%= formatDate(new Date(), "%4Y-%2M-%2D") %>T00:00:00.000Z",
"product_id":"<%= x.product_display_code %>",
"segment":"<%= targetData.x%>",
"carmen_id":"<%= contactES.contactProfilerES.src_contact_id %>",
"Salutatio":"<%= contactES.contactProfilerES.gender %>",
"test":"<%= contactES.first_name.toUpperCase() %>",
"test":"<%= contactES.last_Name.toUpperCase() %>",
"test":"<%= contactES.second_last_Name.toUpperCase() %>",
"email":"<%= contactES.main_email_address %>",
"telephone":"<%= contactES.mobile_phone_number %>",



 http.header["X-WSSE"] = l("test"'t');
 http.header["Content-Type"] = "application/json; charset=utf-8";
 http.method = "POST";
 http.body = JSON.stringify(body);
After run this code i can receive the response from the api ok.
The problem is that adobe campaing  cant show this response data and the statistics in the Dashboard Panel.
Is there any way to show the statistics of the delivery htttp request in the dashboard?
Thanks for all .


1 Reply


you can create a delivery via javascript and add it to the campaign; then the delivery will show up in the campaign dashboard. Example:

var deliveryTarget = <delivery>
      <targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>
          <condition expr='[@folder-id] = 1050'/>

var templateName = 'myTemplate';
var deliveryXml =, deliveryTarget);
var delivery =;
var operationId = 1234;

delivery.operation_id = operationId;
delivery.scheduling.validationMode = "auto";
delivery.validation.useBudgetValidation = false;
delivery.validation.useContentValidation = false;
delivery.validation.useTargetValidation = false;
delivery.validation.useFCPValidation = false;;;

In the code above the operationId is the operation/@id attribute of the campaign.

Best regards, Tobias