@Siva_Venna You can declare the pipeline parameter and pass the value for it from the calling environment of your trigger task, then you can refer the same parameter reference in the pipeline to create the file.
Please see the below screenshot:
![]()
Refer the below documentation link for more information on how to pass the pipeline properties as query params for a trigger task.
https://docs-snaplogic.atlassian.net/wiki/spaces/SD/pages/986383617/Passing+Pipeline+Arguments+to+Triggered+Tasks
Also you don’t have to parse and then format the file content instead you can even write directly to the file using FileWriter snap.