General X++ Development

How do I use `SysQuery::value()` in X++?

Asked by Sunny Vasty· Aug 13, 2026· 1 answers

How do I use SysQuery::value() in X++?

SSunny Vasty75 reputation · answered Aug 13, 2026

Use SysQuery::value() to format a single value for a query range.

X++
qbds.addRange(fieldNum(CustTable, AccountNum))
    .value(SysQuery::value('US-001'));

It keeps you from manually worrying about quoting and range formatting for normal values.