Avatar

Level 4

Hi Folks, 

 

My task is to send emails through API methods which are available in adobe campaign classic. 

 

I am pulling records from query activity and the next i am placing a javascript node and calling the method : 

 

logInfo(NLWS.nmsDelivery.SubmitDelivery("prdDM30931",""); where prdDM30931 is the delivery template name which i created manually. 

 

this is the method declaration given in documentation. 

Number deliveryId = SubmitDelivery ( String       scenarioName, XML          content )

so i assume something has to be given in 'XML content' section but there is no clear notes what to give there. 

 

my workflow looks like this :

 

Ramaswami_0-1604940932629.png

 

 

i have given a sample xml like the below : 

 

NLWS.nmsDelivery.SubmitDelivery("prdDM30931",<delivery>

<targets>

<deliveryTarget>

<targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>

<where>

<condition expr={'@id ='+ ctx.recipient.@id}/>

</where>

</targetPart>

</deliveryTarget>

</targets>

</delivery>)

 

and it throws error saying ctx is not defined.