Skip to main content

Hi.

 

We created a process for invoice receiving and accepting, customer doesn't use SharePont.

 

Customer scans the invoice and saves the data in the database, the document is saved to a predefined folder. Path to the document is saved to database. The process is started through the windows service we developed.

The process is now started, the received invoice is displayed on the smartform in the Content control.

Customer wants to add other attachments besides the invoice to the process, and here is the problem.

For adding the invoice, we used control "file attachment", which doesn't have any parameters so that it could save the attachments to a folder we want. The documents are saved to "c:program files (x86)k2 blackperalk2 smartforms runtimefiles". The problem is, the files in therse folder are automaticly deleted, so this solution is useless.

We need a solution, that would enable the customer to add dinamic number of attachments to the process, that would be saved to a predefined directory.

 

Link to a video:

http://youtu.be/vsLwLf358-4

 

 I'll be happy if anyone can help.

Hi,

I have just spent some time looking for any relevant solutions to this. I've found some other community threads but may be worth a look at, but nothing conclusive:

http://community.k2.com/t5/K2-blackpearl/Handle-multiple-attachment-in-k2-smartform/td-p/60293
http://community.k2.com/t5/K2-blackpearl/Email-Attach-Multiple-Documents-from-Content-List/m-p/48861
http://community.k2.com/t5/K2-blackpearl/Attaching-Documents-dynamically-to-a-Workflow/td-p/32567/page/2

I can't say for sure, but I think this may not be possible OOTB and may need custom code. Perhaps it would be worth contacting services?

 

Regards,

Isaac.


Hi Isaac, thanks for the reply.

 

The project leader now decided that we would export and decrypt the attachments from the database table using custom C# code. The articles you linked helped me to do that, so many thanks.

 

 


If you are only running one K2 server (ie not load balanced), then the files are stored at Your Install Directory/K2 Smartforms RuntimeFiles.

So as soon as an attachment is uploaded to the file control, it is stored there temporarily so you can always write something to copy the file over to the right directory.

 


my question is similar, but can K2 fetch attachment from received email and save in predefined folder?


Not as far as I know. I have not come accross this especially not out of th box.You will most likely need a custom soluton for this.


thanks for your reply


Reply