AnsweredAssumed Answered

Email Modified Files?

Question asked by eyestreet on Jun 20, 2007
I'm doing something simple by sending an email script that is using this template… it should email only the files that have changed, but instead i'm getting all files that are in staging…

Is there a modified file list in the workflow?  All we need is a simple file list of the files in the workflow.

– email call

               var mail = actions.create("mail");
                 mail.parameters.to =  initiator.properties["cm:email"];
                 mail.parameters.subject = "WCM Notification" + bpm_workflowDescription;
       mail.parameters.from = "wcm_admin@company.com";
       mail.parameters.template = companyhome.childByNamePath("Data Dictionary/Email Templates/new_notify.ftl");
                 mail.parameters.text = "The workflow job has been submitted. \n\n-WCM Team";
                 mail.execute(bpm_package);

– ftl
<#list document.childrenByXPath[".//*[subtypeOf('cm:content')]"] as child>
- ${child.properties.name}
</#list>

Outcomes