#attachments

How to attach file in disk to an email dynamically?

We tried to attach file by running a script as follows. But, it didn't attach file to the email. Let me know if there are any other ways of doing this or mistakes in this attempt.

import java.io.File;
import java.util.logging.Logger;

File readFile() {
Logger logger = Logger.getLogger("org.bonitasoft");
File file = new File("C:\\Users\\sachinm\\Downloads\\testDoc.txt")
logger.info("File read");
return file;
}

readFile();

generate document list in emails

Hi,

In my process, I retrieve some documents provided by the user (List of documents) and I can generate 0 or several .docx files (Single Document).

At some point, I have to send an email with the provided and generated files. To do so, I created a script in the attach file part of the email connector :

How to retrieve the local files on server side with file name from front pages?

Hi everyone,

I currently encountered a problem. I have a form where users can select several file names among a lot of names, then we'll lead users to another application page with the selected name(s). Since this redirection does not reflect a process or a task at backend( the pool), I have no way to do some operations( like retrieving the files in my repository by names via Groovy) to manage the documents variable, which means I can't display the files by document_ref in my file viewer.

So is there any method that can help me to realize that?

Notifications