COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Report Studio => Topic started by: Cognos Talk on 15 Aug 2016 12:18:05 PM

Title: HTML item Call outlook and put ReportName () function into the body of the email
Post by: Cognos Talk on 15 Aug 2016 12:18:05 PM
Hi,
I created an HTML item to call Microsoft outlook and send email from Report Studio but cannot figure out how to put reportname and username into the body of the email, just to make this html item generic

here is my HTML item

<a href="mailto:ttt@ttt.com?subject=Subscribe to Report Distribution&body=Click
<a href=%22http://www.google.com%22>Here</a> to go to google.com">Please subscribe me to this report</a>



Can you please help,
Thanks You.
Title: Re: HTML item Call outlook and put ReportName () function into the body of the email
Post by: AnalyticsWithJay on 17 Aug 2016 11:58:20 AM
Hi,

You have to break up your string and assemble it using concatenation operator (+). Use a layout calculation.

Example syntax:
"<a href='#&body='" + ReportName () + '...'