I am trying to download a file from a portal and send it via email.
I have downloaded it but not able to send it via email as the file name is different each time .
Ex - Reportview(1)
Next time the report will be called Reportview(2).
How to navigate ? I used the capture command but i think it won't work.
Page 1 / 1
I am also new to this. Here’s What I think use
Use loop iterates through the files
Use Number to string set count to 1
Inside loop Use file folder package to get the name and store it in variable
inside now use email package to send the file and use variable created in the 3rd step to update the file name
Use Number Incrementer to increment the value of count.
I know these are not accurate steps, but just try to understand and apply it. I hope it helps.
Hi @Nishant.D ,
You can try the below approach which is comparatively less complicated and let me know your observation.
From your Brower (Chrome/Edge) settings, go to the Download setting and enable the below option.
So, each time when any file is getting downloaded, the Save As window will popup. This will allow you to assign desired name to the downloading file. If you want to have dynamic names each time, try adding the System variable ‘Seconds’ along with it.
Loop the files and find the most current one that meet the criteria you need (name, extension ….).
Clean the download folder before downlead files in it, and you will have always static name for the file ( Ex - Reportview ). This is the simplest way, but not the most elegant one