<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Attachments of all Case Documents to Email</title><link>https://answers.axonivy.com/questions/2805/attachments-of-all-case-documents-to-email</link><description>&lt;p&gt;In our projects we want to attach all documents which are appended to a specific case.&lt;/p&gt;
&lt;p&gt;More in detail:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;User attaches multiple files to a case&lt;/li&gt;
&lt;li&gt;Script step to prepare e-mail&lt;/li&gt;
&lt;li&gt;send email with help of the email step&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;What do we need to do in step 2? Can you provide a short code snippet?
Thanks a lot in advance!&lt;/p&gt;
&lt;p&gt;In our Project we use Ivy 6.0.6.&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2805/attachments-of-all-case-documents-to-email" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 11 Aug 2017 10:38:26 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2805/attachments-of-all-case-documents-to-email/2806</link><description>&lt;pre&gt;&lt;code&gt;import ch.ivyteam.ivy.workflow.document.IDocument;
for(IDocument doc : ivy.case.documents().getAll())
{
    out.caseFiles.add(doc.read().asIvyFile());
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;the my &lt;code&gt;caseFiles&lt;/code&gt; field is a List of File&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 11 Aug 2017 10:38:26 -0400</pubDate><guid>https://answers.axonivy.com/questions/2805/attachments-of-all-case-documents-to-email/2806</guid></item></channel></rss>