cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieve Filename into Mapper from Box Read

Johan
New Contributor

How can I catch the Filename “Box Read” Snap opened into the “Mapper” snap?

Box%20Read%20File%20Name

9 REPLIES 9

slaytanic70
New Contributor III

Is your “Box read” a multi-file reader or single? Single, you can pass a parameter in for the file name instead of calling it directly. If it’s multi, you would have to get a bit fancier by doing a binary to document and getting the content-disposition field to get the filename.

Pavol
New Contributor II

Hi, can you post a sample pipeline? How do you ensure that the XML Parser reads the content and not the “content-disposition”?

cstewart
Former Employee

image

If you want to have the name of the file read you can use this technique, which captures the filename in the mapper after the binary router, and then join that with the data output of the parser.
I configured that mapper like so:
image
and the Join like so:
image

michelle_maraj
New Contributor

what expression did you use in the binary router for the content-location to show up in the mapper?