cancel
Showing results for 
Search instead for 
Did you mean: 

Routing based on mail attachment name

Former Member
0 Kudos

Please provide any pointers for the following Scenario: Mail to File;

Read attachment from sender mail adapter.

Route it based on the attachment name.

Pass the attachment as payload to receiver.

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Have you seen this wiki? You can follow the adapter module sample code snippet and this would help you. 

http://wiki.sdn.sap.com/wiki/display/XI/Adapter+Module+PI+7.0+Get+Attachment+Name

Also you might want to see this thread for the code changes to Pi version 7.1 and above

http://scn.sap.com/thread/1176416

stefan_grube
Active Contributor
0 Kudos

I think this is not possible in standard. You need to write your own adapter module to determine the attachment name and put the value to a dynamic header.

gagandeep_batra
Active Contributor
0 Kudos

Hi Karthik,

Plz do some search on SCN it will easily find.

for reference Check below:

http://wiki.sdn.sap.com/wiki/display/XI/Step+by+Step+Mail+To+File+Scenario

Former Member
0 Kudos

Thanks but have you noticed "Route it (to different receivers) based on the attachment name."

Former Member
0 Kudos

Hi Karthik,

As Stefan said, you need to have your own custom module to get the filename and can use that as a dynamic header and determine value at your receiver determination in order to achieve your requirement.