# Email .doc file from a batch execution

**URL:** <https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408>\
**Category:** KNIME Extensions\
**Tags:** reporting\
**Created:** [February 17, 2015, 3:56pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408 "2015-02-17T15:56:48Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![smmorton](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@smmorton](https://forum.knime.com/u/smmorton)\
**Post date:** [February 17, 2015, 3:56pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/1 "2015-02-17T15:56:48Z")

</div>

Hi,

I have a workflow that creates a report that the user is currently using in the Webportal. &nbsp;In the Webportal, they have the option to email upon completion, which allows them to send the report as an email attachment&nbsp;in one or more of the listed outputs.

Is this possible if you use the batch option from the command line?&nbsp;

&nbsp;

Thanks,

&nbsp;

Stu

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [February 17, 2015, 4:41pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/2 "2015-02-17T16:41:43Z")

</div>

No this is not possible with the batch executor.

---

<div class="post-metadata">

**Author:** ![smmorton](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@smmorton](https://forum.knime.com/u/smmorton)\
**Post date:** [February 17, 2015, 10:33pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/3 "2015-02-17T22:33:28Z")

</div>

Hi Thor,

Thank you for the response. &nbsp;Is it possible in the WebPortal to generate multiple reports? &nbsp;For example, I have a workflow now that allows the user to input some initial paramter data that is used by the workflow to retrieve data and then that massaged in the workflow and ultimately displayed in the Webportal window.

&nbsp;

Is it possible for the user to input a file with X&nbsp;lines that contain the required parameter data, so that one execution can &nbsp;generate X number of reports; one for each of the lines in the input file via a loop?

---

<div class="post-metadata">

**Author:** ![thor](https://forum-cdn.knime.com/user_avatar/forum.knime.com/thor/32/4_2.png) [@thor](https://forum.knime.com/u/thor)\
**Post date:** [February 18, 2015, 9:25am UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/4 "2015-02-18T09:25:30Z")

</div>

Each workflow can only generate one report. However, we are working on a mechanism to call workflows from another workflow. The first "input" workflow will take the parameters and loop over them and call a second "output" workflow in each iteration. This is planned for one of the next server releases.

---

<div class="post-metadata">

**Author:** ![s.roughley](https://forum-cdn.knime.com/user_avatar/forum.knime.com/s.roughley/32/366_2.png) [@s.roughley](https://forum.knime.com/u/s.roughley)\
**Post date:** [February 18, 2015, 3:50pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/5 "2015-02-18T15:50:02Z")

</div>

Stu,

&nbsp;

We described our attempts to do something like this here - http://www.knime.org/files/006\_kuduk\_roughley\_vernalis.pdf

Slide 20 or so is about where you need to look.&nbsp; It is a bit of a messy approach, so hopefully an "official" solution will be available soon

Hope this helps,

Steve

---

<div class="post-metadata">

**Author:** ![smmorton](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/s/ecc23a/32.png) [@smmorton](https://forum.knime.com/u/smmorton)\
**Post date:** [March 23, 2015, 7:33pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/6 "2015-03-23T19:33:12Z")

</div>

Hi Steve,

&nbsp;

This looks very interesting. &nbsp;Do you have a demo file that you can upload for me to test?

&nbsp;

Thanks.

---

<div class="post-metadata">

**Author:** ![s.roughley](https://forum-cdn.knime.com/user_avatar/forum.knime.com/s.roughley/32/366_2.png) [@s.roughley](https://forum.knime.com/u/s.roughley)\
**Post date:** [March 24, 2015, 2:03pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/7 "2015-03-24T14:03:22Z")

</div>

That should be no problem.&nbsp; Give me a day or two to distill down one of our example cases to something simpler!

Steve

---

<div class="post-metadata">

**Author:** ![s.roughley](https://forum-cdn.knime.com/user_avatar/forum.knime.com/s.roughley/32/366_2.png) [@s.roughley](https://forum.knime.com/u/s.roughley)\
**Post date:** [March 31, 2015, 6:40pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/8 "2015-03-31T18:40:26Z")

</div>

Try importing the attached - [https://www.dropbox.com/s/8c16pyr6ikgfmeq/report\_calling\_demo.zip?dl=0](https://www.dropbox.com/s/8c16pyr6ikgfmeq/report_calling_demo.zip?dl=0).&nbsp;

You will find 2 workflows which hopefully provide a very simple example case.&nbsp; You need to do some configuration of some of the quickforms in "Report Master Workflow" to ensure that the "Report Creator" workflow is found ok.

Steve

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 2, 2023, 9:22pm UTC](https://forum.knime.com/t/email-doc-file-from-a-batch-execution/7408/9 "2023-06-02T21:22:56Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
