Add multiple email attachments

  • 26 April 2018
  • 4 replies
  • 43 views

I am sending an email and would like to loop through a number of files and attach each one to the email. How can that be done? Not using SharePoint, the files are coming from Azure. 


4 replies

Userlevel 5
Badge +16

Hi,


 


Please have a look at this community post:


 


http://community.k2.com/t5/K2-blackpearl/Allowing-multiple-file-attachments-and-attaching-them-all-to-an/m-p/102822#M34187

I need to dynamically look through a list of files and add them all, that doesn't look like it's covered by the other link you referenced.

 

It should be possible to add an attachment without going through the wizard, surely? No one knows at design time what attachments will need adding to an email.

Petax, In my case, i'm storing the attachements in SQL table with request_id

And in my email event(Attachements) i'm calling list method of the smartobject and selected an option(Return all results that match filter) by passing the request id.

So that in email it will show all the attachements(if request contains more than 1) for that particular id.

 

Hope this helps.

 

Regards

SK

 

Hi Peteaxtell,
 
Using K2 Studio there is the ability to add multiple attachments within the Email Event wizard under the advanced mode.
 
https://help.k2.com/onlinehelp/k2blackpearl/UserGuide/4.7/default.htm#Thick_Client_Wizards/Event_Wiz...?
 
This will allow you to attach the multiple files.  From you scenario it sounds like this needs to be handled dynamically, which would present a different challenge.  You might be able to utilize expressions within the add attachments to check against how many items were saved in the form to conditionally add attachments.
 
Hope this helps get you pointed in the right direction.
 
Thanks,
Luyanda

 

Note: K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.

Reply