Community forum

Please note that VisualCron support is not actively monitoring this community forum. Please use our contact page for contacting the VisualCron support directly.


VKG_2017
2019-08-21T05:55:41Z
Hi Experts,

I have one file having name like 'USUKCAN_Data_Check_Report_CAN_20192108009234.csv'.
Now I want to rename this file with some part of file name (after CAN_) with output of one previous task value which is like 20190809.
So my new name should be like USUKCAN_Data_Check_Report_CAN_20190809.csv
I am using File Rename task and in Include File mask i am giving Electra_Data_Check_Report_CAN_*.csv. But not sure what regex to use in Rename settings tab.

I used below but it is giving error
{STRING (Replace| {NEWNAME()}|USUKCAN_Data_Check_Report_CAN_*.csv|USUKCAN_Data_Check_Report_CAN_ {TASK(47856b39-5303-42ef-afc2-ba00fdefe9ed|StdOut)}.csv)}

Any quick help would be appreciated.

Regards
Vikas
Sponsor
Forum information
thomas
2019-08-21T08:18:37Z
Hi

No need for regex here or post process with newname. The first part of the name id fixed, ie USUKCAN_Data_Check_Report_CAN_ . So just name your file
USUKCAN_Data_Check_Report_CAN_{variable}.csv

VKG_2017
2019-08-21T10:30:01Z
Thanks Thomas for your quick support.
It worked. Appreciate.

Regards
Vikas
Scroll to Top