Forum Discussion

Manigandan's avatar
Manigandan
New Contributor II
4 years ago
Solved

How to get filename from Multi Part Reader Snap?

I am trying to expose snaplogic pipeline as an API. Whenever an excel file is received i should save it in the same name? Please can you help, thanks in advance!

  • I tried this and it worked!!!

    $[‘content-disposition’].substring($[‘content-disposition’].indexOf(“filename”) +10)

    Thanks Everyone.

1 Reply

  • SpiroTaleski's avatar
    SpiroTaleski
    Valued Contributor

    @NAl

    Yes, if the pipeline is linked with the error routine(pipeline), all the errors that may occurs in every place will be routed to the error pipeline. You can remove all the error views from the Snaps.
    The structure of every error message is almost the same. For mapping purposes, you should only store one error message, and use that message for building the mapping in error routine.

    Regards,
    Spiro Taleski