Roc127
12/31/2020, 12:41 PM{"type":"error.SuiteScriptError","name":"SSS_INVALID_SRCH_COL","message":"An nlobjSearchColumn contains an invalid column, or is not in proper syntax: quantityonhand."
,
when triggering a search of type search.Type.INVENTORY_BALANCE.
I aim to get the quantity on hand for a given item and location.
I believe the internal ID is quantityonhand
, but I haven't found the documentation on this so I am not fully sure.
I have also try with same result with quantityavailable
and totalquantityonhand
.
Any idea?
I normally run the searches in the UI and export it with the plug-in _NetSuite Saved Search Code Expor_t and this way I have no issue with internal ids of columns, but inventory balance searches are not supported in the plug-in.battk
12/31/2020, 12:41 PMbattk
12/31/2020, 12:42 PMRoc127
12/31/2020, 12:44 PMRoc127
12/31/2020, 1:16 PMbattk
12/31/2020, 1:22 PMdbarnett
12/31/2020, 3:17 PMjQuery('.ns-dropdown[data-name="alertbodyfield"]')
.data('options')
.filter(o => o.value && !o.value.startsWith('_'))
(this will work on any other search type as well)Roc127
12/31/2020, 3:23 PM