Custom Actions Script to file



I have a file import automatically to my folder every day in this format ProfitSalesData20160112.txt
I am using the custom script to change the filename to ProfitSalesData-2016-01-29.txt

However, is it possible for RPA recorder recognized this file as the date changes every day? or any alternative methods?


Hi, as I understand, the file’s name always has this format: ProfitSalesData(date).txt.
Have you tried reading the contents of the folder and then using Regex to check if there is a file name that matches such format? .*ProfitSalesData.*\.txt