Discover how a bimodal integration strategy can address the major data management challenges facing your organization today.
Get the Report →How to pipe Raisers Edge NXT Data to CSV in PowerShell
Use standard PowerShell cmdlets to access Raisers Edge NXT tables.
The CData Cmdlets Module for Raisers Edge NXT is a standard PowerShell module offering straightforward integration with Raisers Edge NXT. Below, you will find examples of using our RaiserEdgeNXT Cmdlets with native PowerShell cmdlets.
Creating a Connection to Your Raisers Edge NXT Data
Before establishing a connection, supply the SubscriptionKey, found in the Blackbaud Raiser's Edge NXT Profile.
Authenticating to Raiser's Edge NXT
Blackbaud Raiser's Edge NXT uses the OAuth authentication standard. You can connect to without setting any connection properties using the embedded OAuth credentials.
Alternatively, you can authenticate by creating a custom app to obtain the OAuthClientId, OAuthClientSecret, and CallbackURL connection properties.
See the Help documentation for an authentication guide.
$conn = Connect-RaiserEdgeNXT -SubscriptionKey "$SubscriptionKey" -OAuthClientId "$OAuthClientId" -OAuthClientSecret "$OAuthClientSecret" -CallbackURL "$CallbackURL"
Selecting Data
Follow the steps below to retrieve data from the Constituents table and pipe the result into to a CSV file:
Select-RaiserEdgeNXT -Connection $conn -Table Constituents | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myConstituentsData.csv -NoTypeInformation
You will notice that we piped the results from Select-RaiserEdgeNXT 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.