var sql = "SELECT custrecord_inn_subsidiary, recor...
# suiteql
x
var sql = "SELECT custrecord_inn_subsidiary, recordid FROM customrecord_property_inn_codes WHERE custrecord_inn_code = " + 'Some String' var results = query.runSuiteQL({ query: sql }).results[0].values
c
Try this, I think it's the quotes:
var sql = "SELECT custrecord_inn_subsidiary, recordid FROM customrecord_property_inn_codes WHERE custrecord_inn_code = '" + 'Some String' + "'";
x
That worked. Thanks!
s
might I suggest using modern template strings and you'd avoid this problem in the first place.
c
Should be using parameters.