Skip to Content
0

How to get input file and directory name from input SFTP adapter

Apr 09, 2017 at 04:01 PM

77

avatar image
Former Member

Hi All,

I want to use input file and directory name inside the flow, File name is not fixed it can be anything.

How to get the file and directory name from Sender SFTP adapter .

Regards,

Aditya

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sriprasad Shivaram Bhat Apr 09, 2017 at 06:58 PM
0

Hello Aditya,

You can follow below to get the FileName and Folder

Add a Content Modifier with below configuration:

Navigate to Run time Configuration of Integration flow and set the allowed header:

Regards,

Sriprasad Shivaram Bhat


Show 4 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thanks Sriprasad :)

Folder we can't get through Property? Because for folder ,In Allowed Header we have to give CamelFileParent.

Thanks and Regards,

Aditya

0

Hello Aditya,

In earlier versions those header use to reach Integration Process without getting truncated post Adapter sends the message.Only File Name works if you don't mention anything in Run time Property as of now.

Now we have to explicitly mention the header which needs to be carry forwarded to Integration Process in Runtime Configuration.

It worked without any issues for me,do let me know if you see any issues.

Regards,

Sriprasad Shivaram Bhat

0
Former Member

Hi Sriprasad,

What you have suggested is working, Just for Knowledge i asked you about Property.Thanks for information

Thanks for Help.

Thanks and Regards,

Aditya

0
Former Member

Hello,

Actually if flow will be big the Header value sometime will not able to read, Same issue i am facing if am using property it is working but for header it's passing null value, For directory also can we use property.

0