cancel
Showing results for 
Search instead for 
Did you mean: 

Can I name an emailed attachment?

Former Member
0 Kudos

I've developed a Java program to schedule and re-schedule reports.  Some of these use Business Objects to email files to recipients.  There doesn't seem to be the ability to name the attached file, which tends to get named the same as the Instance with a random numeric string concatenated to the name. The XSD schema in note 1899352 seems to confirm this, or am I missing something?

Is it possible to name the attached file with a chosen name (mimicking the "Use Specific File Name" box in regular BOXI scheduling) or does is these currently not possible?

I want the file name to be of the form  - reportnameYYYY-MM-dd-HH-mm.ss.pdf 

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Active Contributor
0 Kudos

Hi Paul,

Yes, you can use a specific name.  Search for "useSepcificName" in the documentation (Section 6.8)

the syntax would be:

<schedule>

     <name>A PDF report</name>

     <format type="pdf"/>

     <destination>

          <useSpecificName>myreportYYYY-MM-dd-HH-mm.ss.pdf </useSpecificName>

         <mail>

             <from>somebody@company.com</from>

             <to>paul@xyz.co.uk;paul@xyz.co.uk</to>

               ...

there is also an optional attribute to specify the file extension, which defaults to "true".

          <useSpecificName fileExtension="true">myreport.pdf </useSpecificName>


Dan

Former Member
0 Kudos

Hi Dan

Thank you this, it has helped me immensely!

My reference doc is Business Intelligence Platform RESTFUL Web Service Developer Guide - Document Version: 4.1 Support Package 5 - 2014-11-06 and this is silent on <useSpecificName>.

Should I by using a different reference?

Paul

daniel_paulsen
Active Contributor
0 Kudos

Hi Paul,

You'll need the Webi RESTful guide for this information.

Dan

Answers (0)