Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Search For Customer By Group
I am trying to search for customers who are in a certain group. I am using the following code:
var searchFilter = new nlobjSearchFilter("group",null,"anyof",mulitSelectValue); var searchColumn = new Array(); searchColumn[0] = new nlobjSearchColumn("internalid"); searchColumn[1] = new nlobjSearchColumn("phone"); searchColumn[2] = new nlobjSearchColumn("entityid"); var searchResults= nlapiSearchRecord("customer",null,searchFilter,searchColumn); when this is run i get the following error:
Function: schedulePhoneCalls Error: SSS_INVALID_SRCH_OPERATOR An nlobjSearchFilter contains an invalid operator, or is not in proper syntax: group. Stack Trace: schedulePhoneCalls(schedulePhoneCalls:16)
I dont understand this because in the documentation "Group" is an available search field for Customers.
0