QueryResults Output Object (Select-SAPAribaProcurement Cmdlet)
The results of the query.
Syntax
PSObject QueryResultsRemarks
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-SAPAribaProcurement -ANID "AN02000000280" -API "PurchaseOrdersBuyerAPI-V1" -APIKey "wWVLn7WTAXrIRMAzZ6VnuEj7Ekot5jnU" -AuthScheme "OAuthClient" -InitiateOAuth "GETANDREFRESH" -OAuthClientId "testClient" -OAuthClientSecret "testClientSecret" -UseSandbox "false" PS C:\> $row = Select-SAPAribaProcurement -Connection $conn -Table "Orders" -Columns (DocumentNumber, Revision) -Where "VendorId = 'v1'" | select -first 1 PS C:\> $row | ConvertTo-Json { "Connection": { }, "Table": "Orders", "Columns": [ ], "DocumentNumber": "MyDocumentNumber", "Revision": "MyRevision" }