Question
Include a temporal schema in an alert node
Hello community,
I am trying to include the values of a temporal schema of a workflow in an alert node according to the following Adobe link but it is not working.
First, I have created a javascript node with this code:
var query = xtk.queryDef.create(
<queryDef schema="temp:query2" operation="select">
<select>
<node expr="@label"/>
<node expr="@countField"/>
</select>
</queryDef>
);
instance.vars.items = query.ExecuteQuery();
Secondly, I include an alert node with this code:
<ul>
<%
var items = new XML(instance.vars.items);
for each (var item in items.target) {
%>
<li><%= item.@label %> - <%= item.@countField %></li>
<%
}
%>
</ul>
However, the generated email shows the following (shows the code without variable substitution)
<ul>
<%
var items = new XML(instance.vars.items);
for each (var item in items.target) {
%>
<li><%= item.@label %> - <%= item.@countField %></li>
<%
}
%>
</ul>
Thanks for the help!!