Read File Name from SFTP

Hello ,
How can we capture the name of the file picked up from the SFTP if we are reading multiple files at a time? I dont want to use child pipeline but want to capture file name to be used at very end to pass onto email snap?

Thank you in advance!!

@nishantagarwal Use directory browser and in file filter use . will get all file available in your directory.

Thanks @Supratim . I am not sure if this file name will be available after Parser since file name is needed at very end to pass onto email snap.

Create parent pipeline to browse file in sftp directory, pass file name/path in child pipeline as pipeline parameters.Then file name will be available in your child pipeline all the time.

Thanks,
Supratim
(+91)923-263-3466

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored.

hi @nishantagarwal. You can try with Copy snap (placed after directory browser) and Join snap that will be placed just before Email sender snap.

1 Like