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.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Saved Search
I'm currently attempting to retrieve the results from a saved search within Netsuite using the PHP toolkit 12.2. I've tried the below code but with no success. Any help would be more than welcome. Thanks!
require_once '../PHPToolkit/NetSuiteService.php';
$service = new NetSuiteService();
$search = new CustomRecordSearchAdvanced();
$search->savedSearchId = "customsearch125";
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $service->search($request);
if (!$searchResponse->searchResult->status->isSuccess) {
echo "SEARCH ERROR";
} else {
echo "SEARCH SUCCESS, records found: " . $searchResponse->searchResult->totalRecords . "\n";
$records = $searchResponse->searchResult->searchRowList->searchRow;
foreach ($records as $record) {
echo "Name: " . $record->basic->name->searchValue . "\n";