Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
add customer php toolkit overide default country
How do I override the default country when adding a customer with the PHP Toolkit?
I get the following error when trying to set a country
Uncaught SoapFault exception: [soapenv:Server.userException] org.xml.sax.SAXException: US is not a legal value for {urn:types.common_2009_1.platform.webservices.netsuite.com}Country in /home/advisorw/public_html/PHP_Toolkit/PHPtoolkit.php:1541 Stack trace: #0 /home/advisorw/public_html/PHP_Toolkit/PHPtoolkit.php(1541): SoapClient->__soapCall('add', Array, NULL, Object(SoapHeader), Array) #1 /home/advisorw/public_html/PHP_Toolkit/PHPtoolkit.php(1133): nsClient->makeCall('add', Array) #2 /home/advisorw/public_html/submitlead.php(67): nsClient->add(Object(nsComplexObject)) #3 {main} thrown in /home/advisorw/public_html/PHP_Toolkit/PHPtoolkit.php on line 1541