on 06-27-2014 2:06 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aamir,
I tried using Variable Substitution but the Variable that I mention in the Variable Substitution table in Receiver Channel Parameters wont get the value from ESR. It throws this exception though all parameters are Correct.
"The following variable was not found in the message payload: var ".
Kindly advice
Sree Ram
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.