Sunday, August 25, 2013

.Xls as an attachment in BizTalk

How to receive a .xls file and add it as an attachment and to send it to a location ?

Foe that. we can use two methods..

* we can create a multipart message with the boday as a HTML email and the .xls file as an extra part of the  multipart message. The Type should be XmlDocument. Then we can use SMTP adapter and specify the multipart should be sent as attachment. Attach all the parts. we can specify this with the MessagePartsAttachments property -> MessageToBeSent(SMTP.MessagePartsAttachments)=2

*Also we can implement it by using a Custom Pipeline Component too.

But i would prefer to go by the first option. Which is quiet easy to implement.

No comments:

Post a Comment