Cmdlets for Microsoft OneNote

Build 24.0.9060

QueryResults Output Object (Invoke-OneNote Cmdlet)

The results of the query.

Syntax

PSObject QueryResults

Remarks

When executing a search, the results will be returned to the pipeline in a PSObject for each row, one row at a time. Each row object contains the columns of the table with their corresponding values. The row object also contains the table and the connection, which makes it easy to input these values to other cmdlets through a pipeline. Below is an example of a row object in JSON form:

PS C:\> $conn  = Connect-OneNote -OAuthClientId 'MyApplicationId' -OAuthClientSecret 'MySecretKey' -CallbackURL 'http://localhost:33333'
PS C:\> $row = Select-OneNote -Connection $conn -Table "Notebooks" -Columns (Id, notebook_displayName)  -Where "Id = 'Jq74mCczmFXk1tC10GB'" | select -first 1
PS C:\> $row | ConvertTo-Json
{
  "Connection":  {

  },
    "Table":  "Notebooks",
    "Columns":  [

    ],
    "Id":  "MyId",
    "notebook_displayName":  "Mynotebook_displayName"
}

Copyright (c) 2024 CData Software, Inc. - All rights reserved.
Build 24.0.9060