Hi Saruchi,
My scenario is :
1. Create PDF from custom BO
2. Add a "Send Mail" button to OWL.
And it works as expected.
In your case,
1. You create one or more attachments to Attachment Folder of custom BO using its own form template
2. Send Email with one or more PDF from the Attachment Folder.
Am I right? I haven't tested but I think you can just retrieve Binary value from AttachementFolder and assign to att.Binary. Can't you?
Update :
I can send the attachments with the following:
if(this.Attachment.IsSet()){
foreach(var doc in this.Attachment.Document){
att.Binary=doc.FileContent.BinaryObject.content;
att.FileName="hello.pdf";
atts.Add(att);
}
}
Best Regards,
Fred