cancel
Showing results for 
Search instead for 
Did you mean: 

Variable substitution

d_chandrasekhar
Explorer
0 Kudos
119

Hi all,

I think Variable substitution, to get the file name dynamically, refers the target payload. Correct me if I am wrong. If i need a field from the source payload , is it possible?

Thanks and Regards

Sekhar

View Entire Topic
d_chandrasekhar
Explorer
0 Kudos

Hello Santosh,

Your solution of using a UDF to get the file name from the source itself seems fine. But what do i need to give in the "Target file name scheme" which is a mandatory field?

Thanks and Regards

Sekhar

santhosh_kumarv
Active Contributor
0 Kudos

Hi,

>>But what do i need to give in the "Target file name scheme" which is a mandatory field?

It can be anything. However the option Use Adapter-Specific Message Attributes and File Name needs to be selected in the receiver adapter so that the filename that is set in the UDF will overwrite the one which is specified in the File Name Scheme in the CC.

Thanks

SaNv...