SOAP – CustomerSearch returns empty list
Answered
CustomerSearch – Returns empty list when queried through SOAP. In the NetSuite UI there is one active customer being shown. SuiteScript returns the record appropriately which I verified using the Suitescript debugger.
Pythonsearch_bool_field = ns0_factory.SearchBooleanField(False) customer_search_basic = ns5_factory.CustomerSearchBasic( isInactive=search_bool_field ) customer_search = ns13_factory.CustomerSearch(basic=customer_search_basic) response = self.client.endpoint.search( customer_search, _soapheaders={"tokenPassport": self._passport()} )
Best answer
Hi,
Are you using the same role in all instances?
Thanks,
Chris
Yes , with full Administrator role
The Role was the issue, The Role did not have permissions for viewing the customers. Thanks
battk
Share the request xml from the web service logs.