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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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