How am I able to attach a File(PDF) to an Email using the Email Step in the Designer (5.1). I have tried to attach a file using the "select File" functionality but the Path/File is not accepted. What information does Ivy require in order to send an attachment with the Mail?

asked 19.04.2016 at 10:16

RMS71's gravatar image

RMS71
(suspended)
accept rate: 33%


The attachment must be in the file area of the current application. During design time this is always [YourDesignerPath]/files/applications.

You can always reach these files via API

ivy.wf.getApplication().getFileArea();

Its also documented here: http://developer.axonivy.com/doc/latest/DesignerGuideHtml/ivy.processmodeling.html#d5e5929

link

answered 19.04.2016 at 15:15

Reguel%20Wermelinger's gravatar image

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

edited 19.04.2016 at 15:43

Hi Reguel

When i put the email attachment inside [YourDesignerPath]/files/applications/<timestamp_folder>/attachment.png then send attachment with relative path (ex: <timestamp_folder>/attachment.png) by email elements,

i receive an email with attachment name is <timestamp_folder>/attachment.png, somehow email elements use the path as name of file. how can i change it? i don't want to have the timestamp folder in my attachment name.

(30.11.2016 at 10:54) trungdv trungdv's gravatar image

Hi Reguel

I can confirm this behavior in ivy 5.x and 6.x described by trungdv. Essentialy it is not possible to attach a file from deeper folder than <designer>/files/application without being renamed. Example: /application/subdir1/foo.txt will be attached as subdir1_foo.txt

It means, you cannot consider sending more files in time lapse with one file name from your application dir without workaround, which is VERY uncomfortable.

(23.12.2016 at 10:22) josef_koupal josef_koupal's gravatar image

Whats your prefered attachment filename? Just foo.txt, without the folders?

(23.12.2016 at 11:38) Flavio Sadeghi ♦♦ Flavio%20Sadeghi's gravatar image

exactly, i want to send foo.txt in folder <designer>/files/application/subdir1/

file subdir1_foo.txt is attached

(23.12.2016 at 13:06) josef_koupal josef_koupal's gravatar image

Is there a progress in this case ?

josef

(20.01.2017 at 11:33) josef_koupal josef_koupal's gravatar image

Is there a progress in this case ?

josef

link

answered 20.01.2017 at 11:17

josef_koupal's gravatar image

josef_koupal
(suspended)
accept rate: 25%

Are you adressing this Question to me, or "Reguel Werme... ♦♦"?

Roger

(20.01.2017 at 11:29) RMS71 RMS71's gravatar image

Flavio Sadeghi is the one who answered me for the last time, he would be the best recipient. I will add my question as a comment to our conversation in december.

josef

(20.01.2017 at 11:33) josef_koupal josef_koupal's gravatar image

Hi @josef_koupal

In ivy 7.1 we will only add the filename of the file, without path information. As we have seen that this is common practice.

link

answered 12.10.2017 at 04:07

Alex%20Suter's gravatar image

Alex Suter ♦♦
3.1k122247
accept rate: 84%

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

Asked: 19.04.2016 at 10:16

Seen: 3,355 times

Last updated: 12.10.2017 at 04:07