12-08-2020 11:38 AM
here in the mapper1 I am defining one of the target path as parameter(_messagetype), is it possible to pass this value to file writer snap ?
I have defined the same parameter in pipeline properties with value as null
12-08-2020 10:03 PM
@Siva_Venna No Siva, the pipeline param are static and final, can’t change or can’t assign as target value in mapper.
12-08-2020 11:30 PM
thank you @Supratim
my pipeline exposed as triggered task and it has to accept different files and write to destination location. is there a solution to pass file name dynamically based on input file content(files will contain attribute that define file name)?
12-13-2020 07:57 AM
@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+Tr...
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.
12-15-2020 08:36 AM
thanks @patan
I can declare a parameter and reference it but the system invoking this pipeline will not be able to pass the parameter value.