COGNOiSe.com - The IBM Cognos Community

IBM Cognos Analytics Platform => Cognos Analytics => Reporting => Topic started by: Nikhil Shenoy on 08 Jan 2018 04:19:24 AM

Title: Excel Output Report with Summary in E-mail Body
Post by: Nikhil Shenoy on 08 Jan 2018 04:19:24 AM
Hi Team,

I have developed one excel output report (with multiple pages) in Cognos 11.0.6 which will go as an attachment to the users.

Now an additional requirement has come wherein they want a crosstab (For instance: Ageing value wise) of the data which is present in excel file. This crosstab should go as E-mail body and excel file as an attachment to the E-mail

One solution is that we create a second report which is just the cross tab that we want in the body and then schedule it as mail body. And 2nd report with the attachment. But this will result in 2 separate mails that will be triggered at the same time.

Any other possible solutions which can be done so that I need to create 2 reports for it?
Title: Re: Excel Output Report with Summary in E-mail Body
Post by: Lynn on 08 Jan 2018 05:17:28 AM
Quote from: Nikhil Shenoy on 08 Jan 2018 04:19:24 AM
Hi Team,

I have developed one excel output report (with multiple pages) in Cognos 11.0.6 which will go as an attachment to the users.

Now an additional requirement has come wherein they want a crosstab (For instance: Ageing value wise) of the data which is present in excel file. This crosstab should go as E-mail body and excel file as an attachment to the E-mail

One solution is that we create a second report which is just the cross tab that we want in the body and then schedule it as mail body. And 2nd report with the attachment. But this will result in 2 separate mails that will be triggered at the same time.

Any other possible solutions which can be done so that I need to create 2 reports for it?

If you email a report in HTML format leaving the message body empty, the "include link" option not selected, and the "attach the report" option selected it will render the HTML content as the body of the email.

You can use a render variable to render certain pages as Excel only and others as HTML only (or HTML and Excel if your desired crosstab is a page by itself that you'd want in both instances).

When you run your report and select both HTML and Excel as the output method you'll see the Excel rendered pages as attachments and the HTML rendered page as the email body. The email client needs to be one that can display the content so worth testing on different devices and clients in scope for your project.

http://www-01.ibm.com/support/docview.wss?uid=swg21659766
Title: Re: Excel Output Report with Summary in E-mail Body
Post by: Nikhil Shenoy on 09 Jan 2018 01:58:53 AM
Thanks will try it out.
Title: Re: Excel Output Report with Summary in E-mail Body
Post by: raj_aries81 on 10 Jan 2018 05:23:28 PM
Hi Lynn & Nikhil,

I tried this and it works like a charm, nice way of adding exec summary in email body and attaching the excel with detailed information.

Thanks much Lynn

Regards
Raj
Title: Re: Excel Output Report with Summary in E-mail Body
Post by: Lynn on 11 Jan 2018 02:04:47 AM
Glad to hear it was helpful to you!