Skip to Content

Receiver determination using file extension for pass through interface

Oct 27, 2017 at 12:13 PM


avatar image
Former Member

We have a scenario,

We will be getting files with different extensions as email attachment.We need to move it to different folders based on their extension.This is just a pass through scenario , we will not be using any mapping in it.


abc.csv -->> c:\\csv_files\

def.txt -->>c:\\txt_files\

xyz.xslx -->>c:\\xlsx_files\

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Evgeniy Kolmakov Oct 27, 2017 at 01:21 PM

Hi Bharath!

I guess that you won't be able to use receiver determination in your case. If you would use file sender adapter - you could try to use Context object "FileName" for file name checking and selecting the appropriate receiver.

But since you use mail adapter with attachments - the only way I see is to create objects in ESR and use Extended Receiver determination to check the file name. Or another option might be to include file name in mail subject on sender side and check the respective Context Object (if you're going to continue with pass-through scenario).

Regards, Evgeniy.

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hi Eve,

How about using MuliPartHeaderBean first which usually reads all the Mail MIME parameters then assigning the part[1]content.description (which is usually first attachement name) then using dynamicconfigbean to assign this value to any standard context object say "FileName" and then use this in Reciever Determination.

Personally haven't tried but it should work for in case of single attachment.




Hi Manoj!

Yes, you're right. Missed that way. This might work.

Regards, Evgeniy.