QueryResults Output Object (Invoke-SurveyMonkey Cmdlet)
クエリの結果。
Syntax
PSObject QueryResultsRemarks
検索を実行すると、結果がPSObject のパイプラインに一度に一行ずつ返されます。各行オブジェクトは対応する値を持つテーブルのカラムを含みます。行オブジェクトにはテーブルと接続も含まれ、パイプライン経由でこれらの値をほかのcmdlet に簡単にインプットできます。以下に、JSON 形式の行オブジェクトの例を示します。
PS C:\> $conn = Connect-SurveyMonkey -OAuthClientId 'abc123' -OAuthClientSecret 'def456' -CallbackURL 'http://localhost:33333'
PS C:\> $row = Select-SurveyMonkey -Connection $conn -Table "MySurvey_Responses" -Columns (RespondentId, ChoiceId) -Where "ChoiceText = 'blue'" | select -first 1
PS C:\> $row | ConvertTo-Json
{
"Connection": {
},
"Table": "MySurvey_Responses",
"Columns": [
],
"RespondentId": "MyRespondentId",
"ChoiceId": "MyChoiceId"
}