File attached - e-mail task

202 views
Skip to first unread message

t...@ecotronicbr.com

unread,
Oct 21, 2015, 11:37:47 PM10/21/15
to Fujitsu RunMyProcess Developer Community
Helo,

I'm trying to send an e-mail, with an e-mail task with attached files, but I'm having problem with this.

Below the error:

2015-10-22T03:30:39+0000 - Task "TRATAMENTO FISCAL" (id: 5[0] - status: ACTIVE): File not found ("["[{"widget_id":"","name":"LORENE 28 MAIO 2015 II.pdf","id":"16cbc6d0-786d-11e5-aa3c-22000b680007","url":"https://live.runmyprocess.com/live/11761373668587417/upload/16cbc6d0-786d-11e5-aa3c-22000b680007/LORENE 28 MAIO 2015 II.pdf?P_mode=TEST"}]","[{"widget_id":"","name":"KOPRUM 06 JULHO.pdf","id":"156c84f0-786d-11e5-aa3c-22000b680007","url":"https://live.runmyprocess.com/live/11761373668587417/upload/156c84f0-786d-11e5-aa3c-22000b680007/KOPRUM 06 JULHO.pdf?P_mode=TEST"}]","[{"widget_id":"id_comp_despesa_pos","name":"LORENE_28_DE_MAIO_DE_2015.pdf","id":"3fc06550-786d-11e5-a11b-22000b8b31dc","url":"https://live.runmyprocess.com/live/11761373668587417/upload/3fc06550-786d-11e5-a11b-22000b8b31dc/LORENE_28_DE_MAIO_DE_2015.pdf"}]"]") (1 attempt)

It's look like the files have the name and id recognized, but don't find them.


Can help me?

Documento sem título.pdf

Sweta Suman

unread,
Oct 22, 2015, 2:51:32 AM10/22/15
to suppor...@runmyprocess.com
Hi,

In order to send to multiple file as attachment in Email. You have to create an array of file_id and pass it to attachment field.

sample freemarker script to create array of file using -

<#assign file_list=[]>
  <#list upload_files as x>
<#assign file_list = file_list +[x.id]>
</#list>
${file_list}

where upload_files is value variable of upload widget.

Then, pass ${file_list} in attachment field of Email activity.

Hope this helps you.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/f78ee5f4-73f9-4d2b-906d-2c9d4576c23a%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.



--
Thanks,
Sweta 
Fujitsu RunMyProcess

TI Tecnologia da Informação

unread,
Oct 22, 2015, 3:45:54 AM10/22/15
to suppor...@runmyprocess.com
At first thanks a lot. 

One more question:

If I uploaded more thar one file in one file upload widget, can I do the same?

Best regards



You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/LEeMX4rFEzQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.

Sweta Suman

unread,
Oct 22, 2015, 3:49:44 AM10/22/15
to suppor...@runmyprocess.com
Hi,

Yes, freemarker script(provided above) will work for multiple file uploaded using upload widget.

Reply all
Reply to author
Forward
0 new messages