on 07-03-2016 7:08 PM
Dear Experts,
I need your expertise to achieve my following requirement.
Client installed a office 360 mail box to receive Invoices in a PDF format. Vendors used to send their Invoices in a PDF format to this office mail box. Each mail will have 1 or more attachments in a PDF format. A resource used to retrieve these attachments and post on ECC system.
Now, we need to make this requirement as online using PI. Version of PI 7.4 dual stack.
PI has to pick the attachments from the email and place them on File System.
Could you please help me to achieve this Interface on PI ?
Thanks
Rams
Hello Experts,
I have configured the sender Mail Adapter by using the new OSS note 2040884 (Processing Mail attachments as PI messages).
The email has 1 PDF document attached, PI is able to read the email.
Configuration
Module
Result is like following...
on RWB
in Moni
when i click on Display, i can able to view my PDF attachment
but in the above screenshot i couldn't able to find the attachment, however the MaiDocument itself is showing like PDF document.
I need following clarifications and help to place the PDF document on Network directory using File Adapter.
1. I don't know why PI is not taking the attachment as attachment and it is considering the attachment as a message
2. How to download this PI message as PDF document with the same name on Network directory ?
As of now, i am using the file adapter as receiver and i can see the file as interface name without any extension. as shown in below screenshot
Please let me know any other options to get this PI message as my extension document?
Thanks
Rams
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Evgeniy,
I will update and will check whether it will show the attachment now or not?
Meanwhile from the OSS note
Mail.IgnoreMainPayload : This parameter is used to ignore the actual payload of the mail message(which is
being picked up by the Mail Sender channel).
If Mail.IgnoreMainPayload = true and the mail message contains 5 XML attachments then 5 XI messages will
be created and sent to IS.
If Mail.IgnoreMainPayload = false (default) and the mail message contains 5 XML attachments then 6 XI messages(1 for MainPayload and 5 for XML attachments) will be created and sent to IS.
--> how is this related to Attachment
thanks
Rams
Hello Evgeniy,
I have updated the module as per your suggestion... please find below screenshots of result after this
In Mail - I am sending 2 attachments like following
In RWB and MONI i can see 3 messages (1 for message body and 2 for attachments)
Message 1 in Moni
Message 2 in moni - First Attachment from Mail
Message 3 in moni - Second Attachment from Mail
Problem:
1. I didn't find any attachment in 2 messages
2. When i try to open the PDF (by clicking on MailDocument) it is empty
Another strange issue is, the DynamicConfiguration section is empty even i selected 'Adapter-Specific attributes', Hence i can't achieve my solution Attachment name with same name on network directory.
Need your kind help
I don't know why SAP is released the note 2040884 to get multiple attachments from email because the dynamic configuration is not working and attachments are also missing...
Thanks
Rams
Hi Rams!
First, I'm not sure you are able to fulfill your requirement even with new functionality of mail adapter since it is intended for XML attachments processing:
Attachment.ContentType : This parameter is mandatory when the above parameter(Mail.GenerateXIMsg) is configured to 'true'. This will help to process only those attachments whose content-type is text/xml. Hence the value of this parameter must be text/xml.
If Attachment.ContentType = application/xml and the mail message contains 3 XML files(.xml) and 2 Text files(.txt) then 4 XI message(1 for payload and 3 for XML attachments) will be created and sent to IS. Hence we will ignoring Text files(.txt) files.
I would recommend you to use AttachmentSplitterBean developed by .
Regards, Evgeniy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ram,
You can refer the below links
Step by Step Mail To File Scenario - Process Integration - SCN Wiki
Handling Attachments in Mail to File Scenario u... | SCN
regards,
Harish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.