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.
Customer Name from TransactionSearchAdvanced using php Toolkit
I'm having problems accessing a Customer Name from a Saved Search.
I'm running it as a TransactionSearchAdvanced using the PHP Toolkit.
When I get the results back from a Saved Search and var_dump the results I can access most of the data successfully. For example, I'm getting:
["email"]=>
array(1) {
[0]=>
object(SearchColumnStringField)#16 (2) {
["searchValue"]=>
string(20) "finance@expansys.com"
["customLabel"]=>
string(6) "E-MAIL"
}
}
and I'm pulling in the data using:
$EMAIL = $record->basic->email[0]->searchValue;
This is working fine BUT in the same record, I also have:
["entityId"]=>
array(1) {
[0]=>
object(SearchColumnStringField)#33 (2) {
["searchValue"]=>
0