Ready to get started?

Download a free trial of the QuickBooks Time Cmdlets to get started:

 Download Now

Learn more:

QuickBooks Time Icon QuickBooks Time Data Cmdlets

An easy-to-use set of PowerShell Cmdlets offering real-time access to QuickBooks Time. The Cmdlets allow users to easily access live data - just like working with SQL server.

How to pipe QuickBooks Time Data to CSV in PowerShell



Use standard PowerShell cmdlets to access QuickBooks Time tables.

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

Creating a Connection to Your QuickBooks Time Data

TSheets uses the OAuth2 standard for authentication and authorization. To construct your own OAuth app and connect to data, refer to OAuth section in the Help.

$conn = Connect-TSheets  -OAuthClientId "$OAuthClientId" -OAuthClientSecret "$OAuthClientSecret" -CallbackUrl "$CallbackUrl"

Selecting Data

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

Select-TSheets -Connection $conn -Table Timesheets | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myTimesheetsData.csv -NoTypeInformation

You will notice that we piped the results from Select-TSheets 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.