![]() |
VOOZH | about |
The CData Cmdlets Module for Zuora is a standard PowerShell module offering straightforward integration with Zuora. Below, you will find examples of using our Zuora Cmdlets with native PowerShell cmdlets.
Zuora uses the OAuth standard to authenticate users. See the online Help documentation for a full OAuth authentication guide.
In order to create a valid connection with the provider you need to choose one of the Tenant values (USProduction by default) which matches your account configuration. The following is a list with the available options:
Two Zuora services are available: Data Query and AQuA API. By default ZuoraService is set to AQuADataExport.
The Data Query feature enables you to export data from your Zuora tenant by performing asynchronous, read-only SQL queries. We recommend to use this service for quick lightweight SQL queries.
LimitationsAQuA API export is designed to export all the records for all the objects ( tables ). AQuA query jobs have the following limitations:
Limitations$conn = Connect-Zuora -OAuthClientID "$OAuthClientID" -OAuthClientSecret "$OAuthClientSecret" -Tenant "$Tenant" -ZuoraService "$ZuoraService" -InitiateOAuth "$InitiateOAuth"
Follow the steps below to retrieve data from the Invoices table and pipe the result into to a CSV file:
Select-Zuora -Connection $conn -Table Invoices | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myInvoicesData.csv -NoTypeInformation
You will notice that we piped the results from Select-Zuora 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.Download a free trial of the Zuora Cmdlets to get started:
Download NowLearn more:
👁 Zuora IconAn easy-to-use set of PowerShell Cmdlets offering real-time access to Zuora. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.