CustomQueryParameterValue
Type, Introduced in version 26.6
A value for one of the parameters defined on a custom query, supplied to RunCustomQuery.
Values are always sent as strings and converted to the parameter's <xref:Monitor.API.Common.CustomQueryParameterType> using invariant culture:
- `String`: used as is, e.g. `"ACME"`
- `Integer`: e.g. `"42"`
- `Decimal`: period as decimal separator, e.g. `"1250.50"`
- `Date`: ISO 8601, e.g. `"2026-01-31"`
- `DateTime`: ISO 8601, e.g. `"2026-01-31T14:30:00"`
- `Boolean`: `"true"` or `"false"`
Properties
| Name | Type | Summary | Introduced in |
|---|---|---|---|
| Name | String | Name of the parameter, as defined on the custom query, e.g. FromDate.The name is matched case-insensitively and is given without any SQL parameter prefix such as : or @.Names that do not match a parameter on the query are ignored.
|
|
| Value | String | Value of the parameter as a string, e.g. "2026-01-01" for a Date parameter.Pass parameter's type is also bound as SQL NULL. |
Example
Given a custom query with the SQL (written for SQL Anywhere or PostgreSQL; SQL Server uses @ instead of :)
SELECT ... WHERE CustomerCode = :CustomerCode AND OrderDate >= :FromDate
and the parameters CustomerCode (type String) and FromDate (type Date), the following request
runs the query for customer ACME and orders from January 1st 2026:
{
"QueryId": "3F2504E0-4F89-41D3-9A0C-0305E82C3301",
"Parameters": [
{
"Name": "CustomerCode",
"Value": "ACME"
},
{
"Name": "FromDate",
"Value": "2026-01-01"
}
]
}
JSON
{
"Name": null,
"Value": null
}