i have a suiteql query in which i need to pass the date as the parameter. I had done this like below but it shows error
var results = query.runSuiteQL({
query: 'SELECT '+
'item.itemid, item.id, item.displayname, bomcomp.item, itemcomp.itemid,'+
'itemcomp.displayname, bomcomp.bomquantity, itemcomp.itemtype, '+
'itemcomp.custitem_cmb_rollup_cost, itemcomp.lastpurchaseprice '+
'FROM assemblyitembom assbom, item, bom, bomrevision bomrev, '+
'bomrevisioncomponent bomcomp,item itemcomp '+
'WHERE '+
'assbom.assembly = item.id '+
'AND bomcomp.item = itemcomp.id '+
'AND assbom.billofmaterials = bom.id '+
'AND bomrev.billofmaterials = bom.id '+
'AND bomcomp.bomrevision = bomrev.id '+
'AND (bomrev.effectivestartdate is NULL OR bomrev.effectivestartdate <= ?)',
params: [stringDate]
});
could anyone please help me?