David Durst
05/01/2019, 9:10 PMvar matrixSearch = search.create({
type: "customrecord_price_matrix",
filters:
[
["custrecord_price_matrix_group","is",group],
"AND",
["custrecord_pm_min_cost", search.Operator.LESSTHANOREQUALTO, vendorcost],
"AND",
["custrecord_pm_max_cost",search.Operator.GREATERTHANOREQUALTO, vendorcost]
],
columns:
[
search.createColumn({name: "custrecord_pm_gp_percentage"})
]
});
David Durst
05/01/2019, 9:10 PMDavid Durst
05/01/2019, 9:11 PM{
"type": "error.SuiteScriptError",
"name": "SSS_INVALID_SRCH_OPERATOR",
"message": "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: custrecord_price_matrix_group.",
"stack": [
"create(N/searchPaging)",
"getMargin(/SuiteScripts/mro_mapred_priceupdate_v2.js:78)",
"map(/SuiteScripts/mro_mapred_priceupdate_v2.js:102)"
],
"cause": {
"type": "internal error",
"code": "SSS_INVALID_SRCH_OPERATOR",
"details": "An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: custrecord_price_matrix_group.",
"userEvent": null,
"stackTrace": [
"create(N/searchPaging)",
"getMargin(/SuiteScripts/mro_mapred_priceupdate_v2.js:78)",
"map(/SuiteScripts/mro_mapred_priceupdate_v2.js:102)"
],
"notifyOff": false
},
"id": "",
"notifyOff": false,
"userFacing": false
}
David Durst
05/01/2019, 9:11 PMbattk
05/01/2019, 9:34 PMbattk
05/01/2019, 9:36 PMDavid Durst
05/02/2019, 7:07 AM