Skip to Content

Receiver File Adapter Dynamic Folder Name Depends upon Source File Name

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

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

    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

    Add comment
    10|10000 characters needed characters exceeded

  • May 25, 2017 at 01:44 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 10:20 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded