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.
Please note that on Saturday, April 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
PHP getField() problems
Hi all,
I'm trying to parse the object returned by a search, but when I use getField(), it is displaying an empty string. The returned object structure looks like this:
[CODE]nsSearchResponse Object
(
[isSuccess] => 1
[statusDetail] =>
[totalRecords] => 468
[pageSize] => 1000
[totalPages] => 1
[pageIndex] => 1
[searchId] => WEBSERVICES_1172803_02232012142905926815331989_c8ae396cc7f4b
[recordList] =>
[searchRowList] => Array
(
[0] => nsComplexObject Object
(
[nsComplexObject_type] => VendorSearchRow
[nsComplexObject_namespace] => urn:relationships_2011_2.lists.webservices.netsuite.com
[nsComplexObject_fields] => Array
(
[basic] => nsComplexObject Object
(
[nsComplexObject_type] => VendorSearchRowBasic
[nsComplexObject_namespace] => urn:common_2011_2.platform.webservices.netsuite.com
[nsComplexObject_fields] => Array
(
[companyName] => nsComplexObject Object
I'm trying to parse the object returned by a search, but when I use getField(), it is displaying an empty string. The returned object structure looks like this:
[CODE]nsSearchResponse Object
(
[isSuccess] => 1
[statusDetail] =>
[totalRecords] => 468
[pageSize] => 1000
[totalPages] => 1
[pageIndex] => 1
[searchId] => WEBSERVICES_1172803_02232012142905926815331989_c8ae396cc7f4b
[recordList] =>
[searchRowList] => Array
(
[0] => nsComplexObject Object
(
[nsComplexObject_type] => VendorSearchRow
[nsComplexObject_namespace] => urn:relationships_2011_2.lists.webservices.netsuite.com
[nsComplexObject_fields] => Array
(
[basic] => nsComplexObject Object
(
[nsComplexObject_type] => VendorSearchRowBasic
[nsComplexObject_namespace] => urn:common_2011_2.platform.webservices.netsuite.com
[nsComplexObject_fields] => Array
(
[companyName] => nsComplexObject Object
0