In our projects we want to attach all documents which are appended to a specific case.

More in detail:

  1. User attaches multiple files to a case
  2. Script step to prepare e-mail
  3. send email with help of the email step

What do we need to do in step 2? Can you provide a short code snippet? Thanks a lot in advance!

In our Project we use Ivy 6.0.6.

asked 11.08.2017 at 10:02

Alex%20Widmer's gravatar image

Alex Widmer
(suspended)
accept rate: 0%

edited 11.08.2017 at 10:25

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958


import ch.ivyteam.ivy.workflow.document.IDocument;
for(IDocument doc : ivy.case.documents().getAll())
{
    out.caseFiles.add(doc.read().asIvyFile());
}

the my caseFiles field is a List of File

link

answered 11.08.2017 at 10:38

Reguel%20Wermelinger's gravatar image

Reguel Werme... ♦♦
9.4k31958
accept rate: 70%

edited 11.08.2017 at 10:44

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×34
×18

Asked: 11.08.2017 at 10:02

Seen: 1,788 times

Last updated: 11.08.2017 at 10:44