Ready to get started?

Download a free trial of the Zoho Books Cmdlets to get started:

 Download Now

Learn more:

Zoho Books Icon Zoho Books Data Cmdlets

An easy-to-use set of PowerShell Cmdlets offering real-time access to Zoho Books. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.

Pipe Zoho Books Data to CSV in PowerShell



Use standard PowerShell cmdlets to access Zoho Books tables.

The CData Cmdlets Module for Zoho Books is a standard PowerShell module offering straightforward integration with Zoho Books. Below, you will find examples of using our ZohoBooks Cmdlets with native PowerShell cmdlets.

Creating a Connection to Your Zoho Books Data

Zoho Books uses the OAuth authentication standard. To authenticate using OAuth, create an app to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties. See the OAuth section of the Getting Started guide in the Help documentation for an authentication guide.

$conn = Connect-ZohoBooks  -OAuthClientId "$OAuthClientId" -OAuthClientSecret "$OAuthClientSecret" -CallbackURL "$CallbackURL" -OrganizationId "$OrganizationId"

Selecting Data

Follow the steps below to retrieve data from the INVOICES table and pipe the result into to a CSV file:

Select-ZohoBooks -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-ZohoBooks 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.