How To Download a file from Email which is under some text "File"

I need to download the file from email body which has url but the name is File (blue colored). Thanks

Hi @pari_patel

Can you please show how does it look on email body?

Share screenshot?

@pari_patel

if you get the body as html then can use regex and get the url you need as it would always be after href=

Alternately save the file as html in notepad and then use browser/app and then open the file and use get attrubite and give <webctrl tag='a' /> - This would work if there is only one url or if it is the first one

cheers

Hi , @sonaliaggarwal47

I attached the screenshot where I need to click to download file.
image

Thanks

@pari_patel

Follow this approach

  1. Extract link from email body using regex
  2. Use that link with Download file from URL activity to download the file. Remember this will work only if you link is the final link of the file including file extension. If it’s going to be redirect URL this approach won’t work and you will have to use use application browser activity