Connection Crystal Reports
Aprimo Reporting API Overview
The Aprimo Reporting API allows data from Aprimo list and summary reports to be used in Crystal Reports and other external reporting tools.
Limitations:
- Does not support cross-tab reports or reports with charts.
Supported API Calls
- XML – Returns report data in XML format.
- XSD – Returns schema data (XSD) for the report.
- JSON – Returns report data in JSON format.
- Crystal Reports requires XML/XSD endpoints.
Getting Started
Initial Setup for Crystal Reports Integration
- Configure Aprimo Prerequisites
- Configure Crystal Reports Prerequisites
- Expose a Report to the Reporting API
- Set Report Criteria & Parameters
- Configure URL Endpoints
- Create a Connection to the Aprimo API
- Generate a Crystal Report
To Expose a Report to the Reporting API
- Expose the report in Aprimo
- Set report criteria & parameters
- Configure URL Endpoints
- Create a connection in Crystal Reports
- Generate a Crystal Report
To Run a Crystal Report
- Create a Crystal Report from a connected Aprimo report.
Aprimo Prerequisites
Ensure the following are configured:
- The mpm-web-service feature flag is activated.
- The user has the necessary domain rights:
- Analysis, Web Service Access Administration
- Report, View
- Report, Edit
Crystal Reports Prerequisites
1. Install Java 1.8 or Later
Aprimo uses TLS 1.2, which requires Java 1.8 or later.
2. Add Aprimo SSL Certificates to the Trusted Certificate Store
Steps (Internet Explorer):
- Go to your Aprimo login page.
- Click the lock icon in the browser URL bar → View Certificates.
- On the Certification Path tab, double-click Trend Micro.
- Click the Details tab → Copy to File.
- Select DER encoded binary X.509 (.CER) format and save the file.
- Repeat for AffirmTrust Certificate Authority-ov1 and additional environments.
Steps (Chrome):
- Open Developer Tools → Security tab → View Certificate.
- Follow the same steps as above.
3. Import Certificates into Crystal Reports Trusted Keystore
- Close Crystal Reports.
- Open a Command Prompt and navigate to the jre\bin folder.
- Run the following command (modify file paths as needed):
keytool -import -alias cert1 -file "C:\temp\cert1.cer" -keystore "C:\path\to\cacerts" -storepass changeit
- Repeat for additional certificates.
- Restart Crystal Reports.
Expose a Report to the Reporting API
- In Aprimo, go to Report List → Edit Report Details.
- Open the Web Service Access tab.
- Set Allow External Web Service Access to Yes.
- Save the changes and note the report ID & authentication token.
Set Report Criteria & Parameters
Configure Report Criteria
- In Report List, go to Edit Report Configuration → Criteria tab.
- Set criteria as needed, but note:
- Operators like "Is equal to" are not supported for relative dates.
- Run and save the report to apply changes.
Configure Parameters
- In Report List, go to Edit Report Details → Parameters tab.
- Select checkboxes for criteria to expose via the API.
- The API only recognizes Attribute names.
Configure URL Endpoints
An XML or XSD URL consists of:
- Endpoint:
https://[CustomerURL]/ - Resource:
/webapi/api/reports/{ReportID}/###.{Type}Typecan be XML or XSD
- Parameters:
?Name=Value
Example XML URL:
https://aprimo.com/webapi/api/reports/2203.xml/?Status=Open&ActivityType=Activity+Type+1
Example XSD URL:
https://aprimo.com/webapi/api/reports/2203.xsd/
Create a Connection in Crystal Reports
- Open Crystal Reports → File → New → Standard Report.
- In Available Data Sources, expand My Connections → XML and Web Services.
- Enter:
- XML URL Endpoint
- Report ID (User ID)
- Authentication Token (Password)
- Enter XSD URL Endpoint → Finish.
Generate a Crystal Report
- Open Crystal Reports → File → New → Standard Report.
- Expand My Connections → Select the correct connection.
- If parameters are required, enter values and click OK.
- Select Report Details/Row and add to Selected Tables.
- Select desired fields and configure:
- Grouping
- Sorting
- Filters
- Click Finish → OK. The report is now generated.