Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Getting a list of site categories
We are using the PHP toolkit and are trying to get the list of web site categories. Currently doing SiteCategorySearchBasic crashes PHP (segmentation fault).
With a workaround for that being unlikely were are using get operation to look for site categories and receive the following error from the webservice:
[CODE]org.xml.sax.SAXException: SiteCategory is not a legal value for {urn:types.core_2008_2.platform.webservices.netsuite.com}RecordType[/CODE]
Here is our code:
[CODE]$ref = new nsRecordRef(array("internalId"=>$categoryId, "type"=>'SiteCategory'));
$getRecordResult = $myNSclient->get($ref);
[/CODE]
Thanks in advance
-pz
Mindgrub Technologies
With a workaround for that being unlikely were are using get operation to look for site categories and receive the following error from the webservice:
[CODE]org.xml.sax.SAXException: SiteCategory is not a legal value for {urn:types.core_2008_2.platform.webservices.netsuite.com}RecordType[/CODE]
Here is our code:
[CODE]$ref = new nsRecordRef(array("internalId"=>$categoryId, "type"=>'SiteCategory'));
$getRecordResult = $myNSclient->get($ref);
[/CODE]
Thanks in advance
-pz
Mindgrub Technologies
0