Discussion

How to get the File name through File Listener

Hi,

My Requirement is to listen to a pdf file from a location, attach it to the Work Object and move the work Object to a Work basket, the filename which we listens tells us to which Work Basket this WO should be pushed into.

Can anyone help me on this of how to get File name of the file which File listener listens to.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
March 9, 2011 - 3:52pm

See this post:

/node/13036

December 19, 2012 - 11:05am

were you able to do this? I'm trying to do the same

December 31, 2012 - 5:16am

Hi Romero,

I have same requirement.Were you able to do this..?

How we can achive?

Thanks,

Rahul

 

December 31, 2012 - 9:40am

What we have been able to accomplish is to parse a TXT file, take that information and from there create a new document(doc or txt), put the info into that document and attach the new document to the WO we created, not sure if that applies for your requirement? the name of the file is something we are giving at the moment of creating the file. Let me know if so I can help you out

June 3, 2014 - 5:42am

Hi DEYA0003 and Rahul,

Were you able to do this. We have similar requirement.

I am able to get the file name by running file service synchronously but when i run file service asynchronously i am able to get the file name.

Thanks,

Latha

 

 

October 7, 2014 - 10:25pm

Hi Latha,

How did you get the file name while running synchronously?

Thanks,

Kiran.

April 4, 2016 - 2:48am

Hi,

My Requirement is to listen to a flat file from a location and save it to DB.This was working fine, but i also need to get the file name of the file got processed,Can anyone help me on this of how to get File name of the file which File listener listens to.

November 3, 2016 - 7:55am

Hi,

Any news regarding how to get the file name?

Thanks,

V.

November 3, 2016 - 10:12am

Hi, 

To get the file name which file listener is processing, u can get it in LogServiceFile  page. It will give details like Fle Name, File extension, File size etc..  We will mention this page in process tab of a file listener. Below is the attached screenshot. 

Hope this helps..

November 3, 2016 - 10:15am

If you run the service file, you cant get this data as the page is not in the picture at that time. The only way to get this data is running the File Listener. You can trace the file lisener to see the page.