AnsweredAssumed Answered

Mail notification with content Info

Question asked by rockycres on Mar 20, 2009
Latest reply on Jul 29, 2010 by pp20218

In my process definition.xml,I have a script which will send mail notification with content name and other info .

                 var mail = actions.create("mail");
        = '';
                 mail.parameters.subject = "HI";
                 mail.parameters.from = '';                 
                 mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/new.ftl");             
                 mail.parameters.text = "It's done end ";

In the template,

    <h4>Current Document Info:</h4>
   <b>Name:</b> ${}<br>
   <b>Ref:</b> ${document.nodeRef}<br>
   <b>Type:</b> ${document.type}<br>
   <b>DBID:</b> ${["sys:node-dbid"]}<br>

But this is not fetching the right results.

This is the output I am getting…

Current Document Info:
Name: www
Ref   : avm://www–workflow-2fa1924f-82a1-4b0d-b110-0e4f159d3e9a/-1;www
Type :{}avmlayeredfolder

How do I fetch the correct name of the files which were created as a part of the current workflow…Any help is appreciated…