Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 974

Re: SAP Cloud SDK : Send Email With attachment using New Email Functionality

$
0
0

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


Viewing all articles
Browse latest Browse all 974

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>