Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
contact search filter issue
Hi,
Do you have a working server script for searching contacts for a given customer?
I am having trouble getting a filter object to restrict the search by company. The search is not working with a filter, however is working without the filter. Any ideas why this would happen? Function code below.
Any help will be much appreciated.
function searchContacts( customer )
{
var internalid = customer.getId();
var filter = new Array();
filter[0] = new nlobjSearchFilter( "company", null, "anyof", internalid, null );
if( filter[0] != null )
{
var sr = nlapiSearchRecord( 'contact', null, filter, null );
if( sr != null )
{
if( sr.length > 0 )
{
nlapiLogExecution('DEBUG', 'SearchContact results-', sr.length );