Email complete Infopath form


Badge +1

Is it possible to email a complete Infopath form as an attachment in a standard server mail event? I have tried using the File Attachment option and selecting XMLFields/InfopathSchema (root). It seems to be the correct data but K2 throws an error about invalid file trying to attach to email.


Using Infopath 2007 (managed code - if it matters), and K2 2003 sp4.


Anyone have any suggestions?


4 replies

Badge +1
UPDATE (FIXED): I changed the attachment type to K2.net field and pointed at the InfopathSchema root and it works. Only drawback is that you have to have a folder setup on the server with the correct permissions for the "temp" file. Not ideal but doable.
Badge +6

I have the same requirement could you please send some code snippet for this?

Badge +4

I am using infopath with k2 blackpoint. In my infopath form i 'v attachment field, where i can attach the documents or .txt .


Now my task is i 'v to attach above attached file to my E-mail event.


I am able to do entire infopath as attachment, but i don't want entire infopath. I want only attachment field value in the e-mail event in the form of attachment.


 


Thanks,

Badge +6

Did you try assigining the attachment value to a process data field value and using that in your email event

Reply