Hi @CMB80 ,
Welcome to the community.
One alternative approach can be, create a temp folder and save the attachments in it firstly post that Move the attachments to desired folder while moving Rename them with your desired name. This will do what you require.
Thanks
CMB80
February 16, 2022, 11:34am
3
hello, yes thank you - but how do I do the actual renaming? The file names will be dynamic so how do I know what to rename them from?
Gokul001
(Gokul Balaji)
February 16, 2022, 11:48am
4
HI @CMB80
So only the date will be changing right? Try this methods
Method 1:
Use Move file and use wildcards in the source name like this
Method 2:
Use For each file in folder pass your path upto folder name
Use Move file
Hope this helps
Regards
Gokul
CMB80
February 16, 2022, 12:02pm
5
Hi Gokil001 - thanks, first method will not allow illegal characters in path.
Method 2 - can you post xaml as I do not follow the process
Gokul001
(Gokul Balaji)
February 16, 2022, 12:06pm
6
Sure I will give you the skeleton which i shown you can develop based on your requirement
Regards
Gokul
1 Like
CMB80
February 16, 2022, 12:10pm
8
Thank you - I will take a look
CMB80
February 16, 2022, 12:18pm
9
Hi @Gokul001 this doesn’t seem to do anything?
the file names stay as they are.
The xaml has “read csv” but your original image had move file
Gokul001
(Gokul Balaji)
February 16, 2022, 12:20pm
10
Aww Sorry for the bitter mistake
Here is the updated xaml
Main.xaml (6.6 KB)
Regards
Gokul
1 Like
CMB80
February 16, 2022, 12:25pm
11
@Gokul001 Thank you - but it still does not do anything.
I have 3 csv files in the folder which are from the attachments - they are called
SACT_v3- 20220101-20220131 _admin.csv
SACT_v3- 20220101-20220131 _data.csv
SACT_v3- 20220101-20220131 _pass.csv
(The bits in bold will change if when I download attachments next month)
I want to rename them too
adminfile.csv
data.csv
pass.csv
Gokul001
(Gokul Balaji)
February 16, 2022, 12:27pm
12
In which folder the the attachments are available in your system?
CMB80
February 16, 2022, 12:56pm
15
@Gokul001 G:\DataInfo\Management\Targets\Reports
Gokul001
(Gokul Balaji)
February 16, 2022, 12:57pm
16
And you are using this same path right?
Gokul001
(Gokul Balaji)
February 16, 2022, 1:09pm
18
And your Destination path is ?
Destination path means the path in which you need to move the attachment with new name
1 Like
CMB80
February 16, 2022, 1:11pm
19
I don’t need to move it - just keep in same folder with new name
Gokul001
(Gokul Balaji)
February 17, 2022, 8:25am
21
Hi @CMB80
If your query get resolved. Kindly mark the post as solved.
So it will help for others to
Forum FAQ - How to mark a post as a solution
This document is part of our beginners guide .
This article will teach you how to properly mark a post as a solution.
We were closely following our last UiPath Forum feedback round! topic and carefully extracted all the bits of feedback that was provided. As such, we would like to tackle the topic of solutions on our Forum and how to properly use them.
When is the topic resolved?
The topic can be considered resolved when the topic author has fo…
Regards
Gokul
CMB80
February 18, 2022, 8:02am
22
@Gokul001 - that you so much, it works. I couldn’t reply yesterday as I was locked out by the forum
1 Like
system
(system)
Closed
February 21, 2022, 8:02am
23
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.