Adobe API to create html contents/ delivery templates/ lists in emails | Community
Skip to main content
Level 4
June 25, 2020
Solved

Adobe API to create html contents/ delivery templates/ lists in emails

  • June 25, 2020
  • 1 reply
  • 3984 views

Just wanted to ask if Adobe has some out of box API's to create html contents or automatically create delivery templates or lists in emails etc., does this functionality supports in Adobe campaign classic. 

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 Marcel_Szimonisz

Hello @ramaswami 

you can create any object in adobe campaign there is via API that means you can do delivery templates, lists, workflows, campaigns and to run them restart them.

 

Check documentation:

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/about-web-services.html for WSDL

 

Check the entire section

 

Marcel

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
June 26, 2020

Hello @ramaswami 

you can create any object in adobe campaign there is via API that means you can do delivery templates, lists, workflows, campaigns and to run them restart them.

 

Check documentation:

https://docs.adobe.com/content/help/en/campaign-classic/using/configuring-campaign-classic/api/about-web-services.html for WSDL

 

Check the entire section

 

Marcel

RamaswamiAuthor
Level 4
November 15, 2020

Hi @2006083,

 

I tried to send out the delivery through API method like below. I am pulling the emails from query activity and looping through the API like below: 

 

This is my workflow : 

 

 

inside the javascript: 

 

logInfo("Table name:"+vars.tableName);


var cnx = application.getConnection();

var details = cnx.query("select semail from "+vars.tableName);

for each(var row in details)
{
logInfo("row[1]:"+row[0]);

var emailCondition = "@email = '"+row[0]+"'";
var deliveryname = "prdDM30934274";
logInfo("before delivery");
var deliveryId = nms.delivery.SubmitNotification (deliveryname,
<delivery>
<targets >
<deliveryTarget >
<targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>
<where>
<condition expr={emailCondition} />
</where>
</targetPart>
</deliveryTarget>
</targets>
</delivery>);

logInfo("deliveryid : "+deliveryId)

}

 

Concerns with the above code : the delivery template is having some variable pipe-in like <%=recipient.firstname%> but when I loop through the emails which got from query activity i am only passing the email address. 

 

if for above example : i am query respondent id = 1303 whose first name = Suri and email = suri@gmail.com, we also have a respondent whose respondent id = 444 whose first name = venkatsuri and email = suri@gmail.com( which is the same as 1303) 

 

now the problem here is the javascript API method when i query for 1303 it's piping the values of 444 respondent. Can we pass the variables like firstname, etc., through this API ? is there a way?