Support Questions

Find answers, ask questions, and share your expertise

Get Filename with current date using regex

New Contributor


I have a situation where I have to get a new file every day at a specific time which is saved automatically on a specific folder on a remote server using GETSFTP Processor.


for example today there will be a file created on a remote server named 20220223.csv (23rd of Feb current date) . P.s I want to get only one file of the current date and I don't want to update my filename in the GETSFTP processor dynamically every day.


this is my try but it gets previous files too.

NOTE: Expression Language is not supported.




Master Collaborator

@Mun ,


Instead of using the GetSFTP processor, you should use the pattern ListSFTP -> FetchSFTP.

The ListSFTP processor is stateful and will remember which files were already fetched before.




Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.