Discussions
Get All Contact
I am try to query all the contacts in our NetSuite Account. This should be a simple task but the lack of documentation is making this task difficult. Can someone please point me in the right direction?
I am trying the PHP Toolkit first and this is what I got so far:
NSservice = new NetSuiteService();
$NSservice->setSearchPreferences(false, 10);
$cs = new CustomerSearch();
$csb = new CustomerSearchBasic();
$domain = new SearchCustomStringField();
$domain->internalId = 'yourcustomfieldinternalid';
$domain->searchValue = 'text you are searching for';
$domain->operator = 'is';
$scfl = new SearchCustomFieldList();
$scfl->customField = array($domain);
$csb->customFieldList = $scfl;
$cs->basic = $csb;