Author Topic: Burst report and send per mail with dynamic subject  (Read 1432 times)

Offline djknuddel

  • Associate
  • **
  • Posts: 3
  • Forum Citizenship: +0/-0
Burst report and send per mail with dynamic subject
« on: 13 Aug 2009 02:59:18 am »
Hi there,

I have a report that is bursted and sent per mail to different recipients. That is working fine.

At the moment the subject in every email is the same and the name of the pdf file I sent in these mails is always the same too. Thats annoying because if one person gets 2 or more mails then all mails look the same.

Is there a possibility to get the burst key into the subject and into the file names? Thats only logic for me and I wonder why Cognos doesn't have such an option yet.

Any help would be appreciated.

Offline dew

  • Associate
  • **
  • Posts: 4
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #1 on: 04 Sep 2009 06:44:13 am »
Hi.

I also have a user that have requested this.

I'm developing a SDK program to do this for me.
I have managed to get the info i need inside the subject to be dynamically included in the burstkey.
This can then be extracted and put inside the email subject.
My problem now is, once i have saved the port outputs to the content store, how do i email them?  I will need to locate each report output object and then email it.  I found that the email method only works with report objects, not report outputs.

If someone knows how to email specific report outputs please post it and make my day.
Once i figured out how to do it, i will try and post it here.

Regards,
Dew


Offline agm

  • Full Member
  • ***
  • Posts: 8
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #2 on: 09 Sep 2009 12:01:22 pm »
I don't know about the file names, but I think that if you set up an Event, you'll be able to customize the subject.

Offline Sune Jorgensen

  • Senior Information Analyst
  • Full Member
  • ***
  • Posts: 13
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #3 on: 10 Sep 2009 02:11:22 am »
In Event Studio it is not possible to include data values in subject or body. It look like it is possible, but the field name is only showed with brackets and not the value.

It is only in the email options it is possible, but then you can not attach a report.


Offline dew

  • Associate
  • **
  • Posts: 4
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #4 on: 21 Sep 2009 03:53:10 am »
Hi guys.

Here is what i manage to do to get the subject cusomized:

In the report, I added a data item to one of my queries (the same query that contains the main page fields ).
In this query item, i concatenated all the values that i want in the subject.

Then I set the burstkey equal to this new query item in the File > Burst Options window.  (Note this was added to the query and not to the list itself, so that the field does not show up in the report in the end)

After I run(and save) the report - I have a list of bursted outputs, each with its own customized burstkey.

Then I use the SDK to do the following:
- Run the report to make sure I have atleast one report version.
- Query the Content Store to get the latest report version, and get a list of bursted outputs for that version.
- Download each output together with its burstkey.
- Now I have all that i need - I can now change the email subject, or filename of the report, to whatever i want.
- Last step is to create a email with customized subject and attach the relevant output file (pdf in this case) to it  ;)

I used JAVA for the SDK stuff above.

I still wonder why this is not a standard functionality within Cognos  ???

Hope this helps

Regards,

Offline vamu

  • Associate
  • **
  • Posts: 1
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #5 on: 08 Nov 2011 01:05:45 pm »
Hi,

Can you explain the SDK and can post your SDK???

Thanks in adavance!!!

Vamu

Offline kslanicky

  • Associate
  • **
  • Posts: 4
  • Forum Citizenship: +0/-0
Re: Burst report and send per mail with dynamic subject
« Reply #6 on: 29 Nov 2011 01:36:41 pm »
Sune - but in the email option you can add a link to a report.  So the report could be run separately, and then the event runs and send an email with the dynamic subject line, with the report linked in there.  Just an idea/option