cancel
Showing results for 
Search instead for 
Did you mean: 

Receiver File Adapter Dynamic Folder Name Depends upon Source File Name

former_member190536
Participant
0 Kudos

Hello,

I have a requirement to place the files on SFTP in multiple directories depends upon source file name. Here I am not using any mappings, only ICO objects.

Regards,

Khaja.

Accepted Solutions (0)

Answers (3)

Answers (3)

Muru
Explorer

Hi Khaja ,

You can achieve this by using the FileName context object while determining the receiver interfaces .

For the filename that you are planning to place the file in multiple directories create a dummy object in ICO.

It will help you in creating channels for each and every interface . In that way you can use two different channels for target file1 and target file 2.

- Muru

former_member190536
Participant
0 Kudos

Hello Muru,

the Context Object is not taking pattern like Jan*.csv.

I want to give file names as month name as starting. I selected CP as operator in context object but still it is not working, do you know any other way?.

Regards,

Khaja.

former_member190536
Participant
0 Kudos

Hello Muru,

Thx for your reply.

from where I will get FileName context object? because I am not using any mappings here.

Here I have source 12 directories and target 12 directories, can I place all these files in these respective directories without ESR objects with single ICO configuration?

Regards,

Khaja.

Harish
Active Contributor
0 Kudos

Hi Khaja,

FileName is the standard context object for File adapter. you do not need to build this. and you can build this without ESR.

regards,

Harish