cancel
Showing results for 
Search instead for 
Did you mean: 

How to route the file, base on the file name without touching file content?

Former Member
0 Kudos

Hi All,

can you please provide me solution how to route the file based on file name with out touching file content.

Business criteria :

> One source directory having zip files with different file names

> File adapter have to pick the zip files and have to route it to different email addresses based on fist 5 characters of file name.

please provide possible solutions to route the zip files to target.

Regards,

Sreeramulu Konjeti.

Accepted Solutions (0)

Answers (2)

Answers (2)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

>please provide possible solutions to route the zip files to target.

Use Standard receiver determination and in the condition editor use CONTEXT object to write logical expressions based on the file name.

Debashish already given idea about writing condition expressions.

former_member854360
Active Contributor
0 Kudos

You can use Standard context object FILENAME.

in receiver determination Put a condition based on standard context object FileNAME

In the receiver determination, in the condition channel, use the Technical context object 'FileName' for file adapter.

Follow the below path:

Goto Receiver Detrmination --> Condition --> Left Operand f1 Help --> select first option 'Context Object' --> 1 List will be popped up --> Select FileName for File adapter from that list

It will route the file based on filename.

You can use CP for contains pattern (u2248) in condition

FileNAME u2248 ABCFI*