Skip to Content
0

Receiver File Adapter Dynamic Folder Name Depends upon Source File Name

May 25, 2017 at 06:08 AM

77

avatar image

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.

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

3 Answers

avatar image
Former Member May 25, 2017 at 10:11 AM
1

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


interface.png (7.5 kB)
interface-1.png (4.7 kB)
Share
10 |10000 characters needed characters left characters exceeded
Khaja Sk May 25, 2017 at 01:44 PM
0

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.

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

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

0
Khaja Sk May 29, 2017 at 10:20 AM
0

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.

Share
10 |10000 characters needed characters left characters exceeded