今すぐお試しください!

製品の詳細Streak PowerShell Cmdlets を確認して、無償評価版をダウンロード:

今すぐダウンロード

PowerShell でStreak Data データをCSV に落としてみた

標準PowerShell cmdlets を使ってStreak テーブルにアクセス。

CData Cmdlets Module for Streak は、直感的なStreak データ連携を提供する標準cmdlet です。 本記事では、Streak Cmdlets を使ったサンプルを提供します。

Creating a Connection to Your Streak Data

Use the following steps to generate a new API key for authenticating to Streak.

  1. Navigate to Gmail
  2. Click on the Streak dropdown to the right of the search bar
  3. Select the Integrations button. This will open a window where you can view existing integrations and create new API keys.
  4. Under the Streak API section of integrations, click the button to Create New Key.

$conn = Connect-Streak  -ApiKey "$ApiKey"

Selecting Data

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

Select-Streak -Connection $conn -Table Users | Select -Property * -ExcludeProperty Connection,Table,Columns | Export-Csv -Path c:\myUsersData.csv -NoTypeInformation

You will notice that we piped the results from Select-Streak 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.
 
 
ダウンロード