I have a mail which contains Download button
Bot has to click on download button in mail body to download the input file
Subject should contain “Exported records to Excel”
How to write logic for it
Thanks
Likitha
I have a mail which contains Download button
Bot has to click on download button in mail body to download the input file
Subject should contain “Exported records to Excel”
How to write logic for it
Thanks
Likitha
Hello @vinjam_likitha
you can achieve this by using dedicated mail activities in UiPath.
Kindly refer to this video, you may get some idea.
In case it’s not an attachment, but a download link, check if you have the url in mail body text when you read it with UiPath. You could then browse to the url with a browser.
The output of mail body Variable is below format
from this entire file
I want this URL
https://app.sc.ge.com/api/filemanager/v2/apps/1656/tenants/95/sysfiles/9605803
Hi @vinjam_likitha
Could you please send the total text as text file.
Use Regex on the entire body to get url from the body. You can use Activity Find Matching Patterns to use URL.
Thanks.
If your body contains only one link always then use this to get the url
MailBody.Split({"href="""},StringSplitOptions.None)(1).Split({""""},Stringsplitoptions.None)(0)
Then you can use http request and pass the url and then give the file path in the response file path property and save the file if this link directly gives you the download file
Else use open browser/use application browser activity and pass the link and then perform the steps to downlod the file
Cheers