yangyq10
(IvanY)
October 14, 2024, 4:18am
1
Dear Experts
I have an embedded link in outlook email need to be captured
I am not sure what is the correct way to do so
Once open the link in browser, I need to download this report to my local folder
Is there an easy way to do so without clicking here and there in browser?
Thank you for your advise in advance
Ivan
@yangyq10 ,
Extracting with regex is best approach I would say.
Regarding downloading the file, is it’s direct file download link, use Download file from URL activity
yangyq10
(IvanY)
October 14, 2024, 4:23am
3
@ashokkarale May I know the regex in this scenario?
Its not a direct download link, I need to click more steps in Browser to do so
@yangyq10 ,
Use activity Find Matching Patterns which have URL pattern.
In this case UI interaction is the only option
yangyq10
(IvanY)
October 14, 2024, 5:10am
5
@ashokkarale No idea how to use this activity [Find Matching Patterns] in my case
@yangyq10 ,
No problem use this expression in assign activity.
strURL = System.Text.RegularExpressions.Regex.Matches(currentMail.BodyAsHTML,"(?:(?:https?|ftp|file):\/\/|www\.|ftp\.)(?:\([-a-zA-Z0-9+&@#\/%=~_|$?!:,.]*\)|[-a-zA-Z0-9+&@#\/%=~_|$?!:,.])*(?:\([-a-zA-Z0-9+&@#\/%=~_|$?!:,.]*\)|[a-zA-Z0-9+&@#\/%=~_|$])").First().Value.ToString
yangyq10
(IvanY)
October 14, 2024, 6:32am
8
@Anil_G
I don’t quite understand step3. Can you help show more detail? Thanks
Anil_G
(Anil Gorthi)
October 14, 2024, 6:39am
9
@yangyq10
pass the path here
you can opne the file and use indicate to get a generic selector as well
cheers
yangyq10
(IvanY)
October 14, 2024, 6:44am
10
@Anil_G
Can you help take a look why it doesn’t work? Thanks
l
Anil_G
(Anil Gorthi)
October 14, 2024, 6:53am
11
@yangyq10
open the file and indicate the browser
cheers
yangyq10
(IvanY)
October 14, 2024, 6:55am
12
@Anil_G
I don’t know how to open it with an error code…
Anil_G
(Anil Gorthi)
October 14, 2024, 8:13am
13
@yangyq10
Open the file manually just double click
Then indicate the opened browser
Cheers
yangyq10
(IvanY)
October 14, 2024, 8:57am
15
@Anil_G
[Click] can not be used…sigh…
Anil_G
(Anil Gorthi)
October 14, 2024, 9:49am
16
@yangyq10
as mentioned in error go to UiPath extension in browser and enable file urls
cheers
yangyq10
(IvanY)
October 15, 2024, 8:58am
17
@Anil_G
Thank you for the patience and guidance
Eventually I use below method to make it happen(only by UI click)
1 Like
Anil_G
(Anil Gorthi)
October 15, 2024, 9:10am
18
@yangyq10
Even that would work
But just rememeber its not good to perform ui automation on outlook
But glad you resolved
Cheers