Cmdlets for SuiteCRM

Build 22.0.8462

QueryResults Output Object (Select-SuiteCRM 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-SuiteCRM -URL 'http://mySuiteCRM.com' -User 'myUser' -Password 'myPassword'
PS C:\> $row = Select-SuiteCRM -Connection $conn -Table "Accounts" -Columns (Name, Industry)  -Where "Industry = 'Manufacturing'" | select -first 1
PS C:\> $row | ConvertTo-Json
{
  "Connection":  {

  },
    "Table":  "Accounts",
    "Columns":  [

    ],
    "Name":  "MyName",
    "Industry":  "MyIndustry"
}

Copyright (c) 2023 CData Software, Inc. - All rights reserved.
Build 22.0.8462