Skip to Content
avatar image
Former Member

Payload as File name at Receiver File Adapter

Hi All,

I have a requirement for a PROXY to File Scenario where Receiver files has to be named dynamically with a value from the Payload that I get. Also the particular field that has the file name should be unmapped with the Receiver.

For Example,

   <row>

      <Name>Alex</Name>

      <DOB>27062014</DOB>

      <City>Delhi</City>

   </row>

If this is the Payload I get, I want the Receiver file name to be "27062014.txt". At the same time this particular field should not be mapped at the Receiver end.

I have tried a few links which confuse me further.Kindly help me,

Thanks in advance,

Sree Ram

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Jun 27, 2014 at 01:09 PM

    Hi Sree

    You can go for UDF which have dynamic configuration code  for which take input as that value and map to the output of udf to top node of the structure

    Regards

    GB

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 27, 2014 at 01:11 PM

    Hi Sree Ram,

    Use Dynamic Configuration code in a UDF in mapping to set FileName and enable ASMA in receiver file channel

    Regards,

    Praveen Gujjeti

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 27, 2014 at 11:16 PM

    Hi Sree,

    for your requirement you probably will be fine with variable substitution. Please have a look here for more details on how to implement.

    Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integration - SCN Wiki

    If things turn out to be more complex you still may go on with dynamic configuration which is also described in above Wiki.

    HTH

    Cheers

    Jens

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 28, 2014 at 11:28 AM

    Hi Sree

    If you don't want to do use UDF then you can use Variable Substitution for your

    scenario. with this you can avoid mapping of your target element.

    Regards,

    Aamir

    Add comment
    10|10000 characters needed characters exceeded