Hi there,
I'm practising using the internal jsapi methods within javascript activities in workflows.
I've successfully built some simple examples using xtk.session.Write and xtk.queryDef.
But when it comes to nms.delivery.QueueNotification (to trigger an email from a delivery template) it's not working.
Here is some sample code (where webappWelcome is the internal name of a delivery template).
I've hardcoded the email condition for ease.
nms.delivery.QueueNotification("webappWelcome",
<delivery>
<targets>
<deliveryTarget>
<targetPart type='query' exclusion='false' ignoreDeleteStatus='false'>
<where>
<condition expr="[@email] = 'davidh@profusion.com'" bool-operator="AND" />
<condition expr="[folder/@id] = 928454"/>
</where>
</targetPart>
</deliveryTarget>
</targets>
</delivery>)
I do not see an error in my code (I have used an almost identical version within a webApp javascript activity successfully).
I am getting this error in the workflow audit.
I do not understand this.
Why would i need to provide a URL for internal jsapi?
Can anyone shed some light on this?
Thanks
David
(i'm using v6.1.1 of campaign classic)