How to get filename from FTP listener port

I have configure FTP listener port and expecting flat file coming in. I have created a service that input is expecting object. How am i to get the filename? It’s seem no way we can get the file name from pipeline. Please asist ASAP.

Thanks
Cliff

You can call the service pub.flow:getTransportInfo. The output from this service will contain the filename of the file uploaded to the FTP listener.

/Kris

You can get the filename and the file object from the service getTransportInfo in WmPublic. I believe that it is in pub.flow:getTransportInfo