Query

Method used to return data from the database.

Note: Beginning in version 16.07.047, the Query sub methods may contain an optional parameter to provide an IsNull response in situations when the query returns back a null value. If the IsNull parameter is null, the system will throw an exception with a custom message. The following changes and logic were implemented to support this option:

  • Added optional poIsNull parameter with datatype appropriate default values.
  • Added logic to check for a query null result to return the parameter if provided, or throw an exception with a custom message providing the query text with parameters, and what was expected and how to protect against it.
  • Added utility method GetQueryWithParameters() to iterate through parameters List and replace parameter placeholders in the query text.
  • Added attributes to GetInt() to show this method is deprecated and ExcludedFromScripting IDE.

Applies To

None

Properties and Methods

Properties

  • .CompanyDatabase
  • .DocumentDatabase
  • .Engine
  • .SystemDatabase

Methods

Available

The Query object is available in:

  • 15.03.016
  • All newer builds

Type

Object

Syntax

Query;

Parameters

None

Example

There is never a point in time where Query would be used on its own.