We are proud to share our inclusion in the 2024 Gartner Magic Quadrant for Data Integration Tools. We believe this recognition reflects the differentiated business outcomes CData delivers to our customers.
Get the Report →How to pipe SAP BusinessObjects BI Data to CSV in PowerShell
Use standard PowerShell cmdlets to access SAP BusinessObjects BI tables.
The CData Cmdlets Module for SAP BusinessObjects BI is a standard PowerShell module offering straightforward integration with SAP BusinessObjects BI. Below, you will find examples of using our SAPBusinessObjectsBI Cmdlets with native PowerShell cmdlets.
Creating a Connection to Your SAP BusinessObjects BI Data
To connect to your SAP Business Objects BI instance, you must set the following connection properties:
- Url: set this to the rest API URL. After logging into the Central Management Console, choose 'Applications' from the combo box. Double-click on 'RESTful Web Service' and you'll see the access URL. By default it is, http://{Server-Name}:6405/biprws.
- User: set this to the username of your instance.
- Password: set this to the password of your instance.
$conn = Connect-SAPBusinessObjectsBI -User "$User" -Password "$Password" -Url "$Url"
Selecting Data
Follow the steps below to retrieve data from the MyCustomReport table and pipe the result into to a CSV file:
Select-SAPBusinessObjectsBI -Connection $conn -Table MyCustomReport | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myMyCustomReportData.csv -NoTypeInformation
You will notice that we piped the results from Select-SAPBusinessObjectsBI into a Select-Object cmdlet and excluded some properties before piping them into an Export-Csv cmdlet. We do this because the CData Cmdlets append Connection, Table, and Columns information onto each "row" in the result set, and we do not necessarily want that information in our CSV file.
The Connection, Table, and Columns are appended to the results in order to facilitate piping results from one of the CData Cmdlets directly into another one.