Have check all related threads in forum but unable to find solution for my issue. Please Help
Below is my flow:
Step 1: Read emails with subject contains “cpc”
Step 2: click on urls given in email body of email with subject “cpc”, to download reports
Reading email with subject line is successfully, as i was able to download attachment with the subject line. However to click on the urls in mail body for downloading reports is not working
@peachnam you are using matches method, so output will be collections then you have to use for each to get each link. if you know you will get only one link per mail u can use match method instead of matches.
@peachnam I am not reading any urls, just replicating the matches activity that’s all. Might be your regex pattern is wrong please check the regex pattern once.
First write whole mail using writeline and check how u getting links and based on that create the regex.
when used mail.body - mail body was coming blank in output panel.
So I followed following to get the mail body in output panel:
Assigned a String Variable = mail.headers(“PlainText”).Tostring
and then, split string variable using array (using stringvariable.split(environment.newline.ToArray())
@Manjuts90 Hi, I missed to identify this earlier, actually the BOT is reading URLs in email body as below
When you see the data in my “Output Panel”, there are 2 sections in the email body: Open Call Data & Close Call Data. As in the actual email body there is supposed to be one direct URL within each section.
However now there is a duplicate url within each section which is showing within < >.
Now how do I let Open Browser ignore the duplicate URL which is showing within <> and open only the direct URL?
@peachnam If your thinking about duplicate url in the mail body, add all the urls in mail to list or array, and remove the duplicate values from the list.
if my understanding is not correct please let me know.