12-01-2017 02:38 AM
hi all,
I have a pipeline which writes a pdf to s3 bucket but the problem is that the filename has to be dynamic. But i cant get the filename as prior to s3 filewriter I have a document to binary snap. Hence the the variable in which i store the name is not available. can someone please suggest a workaround
Solved! Go to Solution.
12-01-2017 08:43 AM
You can map the file name value to $[‘content-location’] prior to the DocToBin Snap and it will be available to use in an expression in the S3 File Writer.
TK
12-01-2017 08:43 AM
You can map the file name value to $[‘content-location’] prior to the DocToBin Snap and it will be available to use in an expression in the S3 File Writer.
TK
12-17-2017 10:18 AM
Hi,
Can the same technique be used in CSV Formatter and File writer. I need to dynamically write file name based on each document and want to know how to pass the dynamic file name (as an document variable) for the file writer snap.
Thanks,
10-31-2018 08:44 AM
It worked for me with sftp. Example (_sftpPath is a pipeline parameter): _sftpPath + ‘/’ + $original.username + ‘.jpg’
10-31-2018 09:16 AM
Here’s one way to do that using a PipeExec snap.