on 11-07-2011 5:06 AM
Hello Experts,
I have a requirement where I need to pick a file and need to send that as an attachment by mail adapter through PI.
I can send the file as attachment but the file name is being changed.
For example,the source file with name "Vendor_2011_11_06" is being transfered but when I am checking the mail box,the file is coming as attachment but the name has been changed to "Untitled.bin".I want the same file name as it was in source SFTP server.
Do any one have any idea that how can we set the file name at receiver mail adapter?
**Note:I have not created any repository objects,simply configured the ID object with dummy Service Interface name.So no mapping exist.
Hi,
For example,the source file with name "Vendor_2011_11_06" is being transfered but when I am checking the mail box,the file is coming as attachment but the name has been changed to "Untitled.bin".I want the same file name as it was in source SFTP server.
by using MessageTransformBean you can acheive this.
Transform.ContentDisposition------ attachment or inline For example, attachment;filename=u201Dabc.txtu201D
Transform.ContentDescription------- Description
Transform.ContentType------Specifies the payload type, for example, text/plain
refer this blog
http://wiki.sdn.sap.com/wiki/display/XI/DynamicEmailAttachmentnameforReceivedMails
i hope this will help you.
regards,
ganesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ganesh,
Thanks a lot for your help.Message Transform Bean is working in case I want a static name.But I want the same name while it was picked by SFTP adapter at source.Do you have any idea that how can we use Meesage TarnsformBean to get the dynamic name of attachment?
I have used the module as below:
Transform.ContentDisposition-->attachment;filename="VendorReport.xml"
The dynamic attachment name can be set using adapter module. Check this [wiki|http://wiki.sdn.sap.com/wiki/display/XI/AdapterModulePI7.0SetAttachmentName] for more details.
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.