cancel
Showing results for 
Search instead for 
Did you mean: 

Need udf to get the filename from the input payload

giridhar_vegi
Participant
0 Kudos

Hi Experts,

I had a requirement where i want the file name as present in the payload.for example i am having the structure as follows

mt_input

Name

id

here if i am having the name as santosh in the input payload i want the file name as santosh.xml so the file naaame will be dynamically chaged as per that i need the file name.Please suggest me. similarly i need the udf to get the header name as file name i.e mt_input.xml this will be in another scenario.

Thanks

Giridhar

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182412
Active Contributor
0 Kudos

Hi Giridhar,

>>>>>here if i am having the name as santosh in the input payload i want the file name as santosh.xml

You can use variable substitution to achieve this.

Dynamic file name and directory in Receiver File Adapter - summary of possibilities - Process Integr...

>>>>similarly i need the udf to get the header name as file name i.e mt_input.xml this will be in another scenario

This you can directly type in File Name Scheme parameter in receiver channel because header name is constant it is not dynamic.

Regards,

Praveen.