on 10-27-2017 1:13 PM
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.
Ex:
abc.csv -->> c:\\csv_files\
def.txt -->>c:\\txt_files\
xyz.xslx -->>c:\\xlsx_files\
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Br,
Manoj
Hi Manoj!
Yes, you're right. Missed that way. This might work.
Regards, Evgeniy.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
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.