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

Learn more

View all

Sign in to view all badges

Using internal jsapi in workflow to send email (

Level 5
Level 5

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 (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."webappWelcome",




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


        <condition expr="[@email] = ''" bool-operator="AND" />

        <condition expr="[folder/@id] = 928454"/>






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?



(i'm using v6.1.1 of campaign classic)

0 Replies