Hi Dear,
There is probably a similar thread to this, but I need someone to explain this to me in simple terms as I am a total beginner when it comes to this.
I'm developing an automation to extract files on the web. The problem is that the name appears in the following format "08-04-2021 06.01.00-DAY001 Report", I want to change the name after downloading it to Report_Day_20210804. Can you help me? I need to convert the date that appears in the name to 20210804 format
Regards
Valter
Solved! Go to Solution.
In simple terms you can do this:
a) Retrieve the file's name
b) Get the day, month and year as variables
c) Concatenate day, month and year variables into the new name you want
d) Rename the excel file.
Considering you'll download your file to a specific folder, this flow will work (actions, key parameters):
1. 'Get files in folder', Folder = where your file is. This will give you a %Files% variable
2. 'Get subtext':
Rename the produced variable as %Month%
3. 'Get subtext':
Rename the produced variable as %Day%
4. 'Get subtext':
Rename the produced variable as %Year%
5. 'Set variable', Define = Newname, To = Report_Day_%Year%%Month%%Day%
6. 'Rename file':
In simple terms you can do this:
a) Retrieve the file's name
b) Get the day, month and year as variables
c) Concatenate day, month and year variables into the new name you want
d) Rename the excel file.
Considering you'll download your file to a specific folder, this flow will work (actions, key parameters):
1. 'Get files in folder', Folder = where your file is. This will give you a %Files% variable
2. 'Get subtext':
Rename the produced variable as %Month%
3. 'Get subtext':
Rename the produced variable as %Day%
4. 'Get subtext':
Rename the produced variable as %Year%
5. 'Set variable', Define = Newname, To = Report_Day_%Year%%Month%%Day%
6. 'Rename file':
You are a genius @yasunm02
Many thanks for help. Working perfect...
Best wishes and a good weekend 🙂
Valter
User | Count |
---|---|
13 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
20 | |
17 | |
17 | |
13 | |
12 |