I need a search that looks for line items with a specific value in a custom field - custcolunique_id
I am using the search below, but am getting a SSS_INVALID_SRCH_OPERATOR
error due to custcolunique_id
. That is definitely the internal field ID since I'm using it elsewhere in code without issue. Is there additional syntax needed in searches to specify that I want to look for a sublist item, or is there a different way entirely that I should be doing this?
var recordSearch = search.create({
type: search.Type.PURCHASE_ORDER,
columns: ['custcolunique_id'],
filters: [['mainline', 'is', 'F'],
'and', ['custcolunique_id', 'is', '123']]
});