Forum Discussion

vipulk10's avatar
vipulk10
New Contributor III
8 years ago
Solved

Dynamic filename in s3

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

  • 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

4 Replies

  • 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

  • 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,