As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
var mail = actions.create("mail-attach"); mail.parameters.toacc = "user1"; mail.parameters.from = bpm_assignee.properties["cm:email"]; mail.parameters.subject = "Document" ; for (var i = 0; i < bpm_package.children.length; i++) { var doc = bpm_package.children[i]; var docTemplate = companyhome.childByNamePath("/Data Dictionary/Email Templates/Notify Email Templates/doc.html"); var args = new Array(); args["comment"]= "+doc_note+"; var result = doc.processTemplate(docTemplate, args); mail.parameters.text = result; mail.execute(doc); }
var mail = actions.create("mail-attach"); mail.parameters.toacc = "user1"; mail.parameters.from = bpm_assignee.properties["cm:email"]; THIS IS USER THAT TASK IS ASSIGNED TO mail.parameters.subject = "Document" ; for (var i = 0; i < bpm_package.children.length; i++) {//HIRE YOU SAY: FOR EVERY DOCUMENT IN WORKFLOW ADD IT INSIDE MAIL var doc = bpm_package.children; var docTemplate = companyhome.childByNamePath("/Data Dictionary/Email Templates/Notify Email Templates/doc.html"); var args = new Array(); args["comment"]= "+doc_note+"; var result = doc.processTemplate(docTemplate, args); mail.parameters.text = result; mail.execute(doc); }
User doesn't have to specify, "user1" is the email receiver ( mail.parameters.toacc = "user1"; )
1: where you want to put your action? ( on space for instance in details space dialog)..2: you need to open dialog when you click on action3: you need to zip space4: select user to send mail to.4: send mail and atachment with it
where do you want to put your action on.
this is true in WFs but in alfresco browser does not work, because who is user1?? you can answer this to me, who is user1 .
you want to have action on space "send by email" in alfresco browser NOT IN WORKFLOW, to click on it, in dialog you want to select user to sent to(you have to do this, because there is no way alfresco to know this), and put zipped docs hire. please confirm mi this part