Need to pass excel report as a link instead of attachment in the body of outlook mail when execution completed using UiPath. Can you please help with the expression how to send excel report as a hyperlink . Excel reports will be stored in network folder path
If you use Create HTML Content Activity and check IsBodyHTML in your Send Outlook Mail Message activity, you can use the WYSIWYG editor to make a hyperlink.
Hi @r0818
=> Use an Assign activity and give the below syntax:
emailBody= "Please find the Excel report at the following link: " + System.Environment.NewLine + "<a href='http://ftpdocs.mydocs.jobs/Automation/StatusFiles/Sample.xlsx'>Click here to access the Excel report</a>"
Note: emailBody Datatype is of Systyem.String
=> Use Send Outlook Mail Message Activity to Compose and send the email.
Configure the Send Outlook Mail Message activity with the following properties:
- To: Recipient’s email address
- Subject: Subject of the email
- Body:
emailBody
- IsBodyHtml: Check this option to interpret the email body as HTML.
The below will be your process:
Assign (emailBody):
To: emailBody
Value: "Please find the Excel report at the following link: " + System.Environment.NewLine + "<a href='http://ftpdocs.mydocs.jobs/Automation/StatusFiles/Sample.xlsx'>Click here to access the Excel report</a>"
Send Outlook Mail Message:
To: Recipient's email address
Subject: Your Subject
Body: emailBody
IsBodyHtml: True
Hope it helps!!
I will try . thank you
Thank you! I will try and let you know
Hope this helps
Happy Automation
Same as any other html link…
<A href='http://ftpdocs.mydocs.jobs/Automation/StatusFiles/Sample.xlsx'>Some text here</a>
If you want the URL to come from a variable, just do…
String.Format("<A href='{0}'>Some Text</a>",yourURLVar)
If you also want “Some Text” to be dynamic:
String.Format("<A href='{0}'>{1}</a>",yourURLVar,yourTextVar)
I did send link as clickable link with display text “click here to download” but when clicking on it from outlook ,excel report is not downloading. But using same hyperlinkI can download when clicked from Word document.
Can you please help if anything that I can change settings or something to make it as downloaded when clicked from email body
Outlook has security built in. When you mouse over the link in the email, does it say something about holding CTRL to click it?
yes
Thank you for your response
Did you hold CTRL to click it?
yes, its working fine now
Thank you so much.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.