RE: SOAP – CustomerSearch returns empty list

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.

Python
search_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()}
)
Amirutha Rookie Asked on August 4, 2020 in SuiteCloud.

Share the request xml from the web service logs.

on August 4, 2020.
Add Comment
1 Answers
Best answer

Hi,

Are you using the same role in all instances?

Thanks,

Chris

Intermediate Answered on August 4, 2020.

Yes , with full Administrator role

on August 4, 2020.

The Role was the issue, The Role did not have permissions for viewing the customers. Thanks

on August 4, 2020.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.