![]() |
VOOZH | about |
The CData Cmdlets Module for Sage 200 is a standard PowerShell module offering straightforward integration with Sage 200. Below, you will find examples of using our Sage200 Cmdlets with native PowerShell cmdlets.
$conn = Connect-Sage200 -SubscriptionKey "$SubscriptionKey" -Schema "$Schema" -InitiateOAuth "$InitiateOAuth"
Follow the steps below to retrieve data from the Banks table and pipe the result into to a CSV file:
Select-Sage200 -Connection $conn -Table Banks | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myBanksData.csv -NoTypeInformation
You will notice that we piped the results from Select-Sage200 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 Sage 200 Cmdlets to get started:
Download NowLearn more:
👁 Sage 200 IconAn easy-to-use set of PowerShell Cmdlets offering real-time access to Sage 200. The Cmdlets allow users to easily read, write, update, and delete live data - just like working with SQL server.