Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Get Filename with current date using regex

avatar
New Contributor

Hello,

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.

Mun_0-1645582108499.png

this is my try but it gets previous files too.

NOTE: Expression Language is not supported.

Mun_1-1645582188498.png

 

1 REPLY 1

avatar
Super Guru

@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.

 

Cheers,

André

--
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.