Netsuite Products Fetch via PHP Toolkit
Hey, hope you are doing well.
Actually i am using phptoolkit to fetch item record using pre build ItemSearch method as given below. That search returns all data except list of all locations that are available. That item have two locations but it returns empty in locationslist field. So what is the process to fetch item locations with all details like quantity fields etc. If you have any idea or hint please share. Thanks in advance
$service = new NetSuiteService();
$service->setSearchPreferences(false, 20, true);
$itemInfo = new SearchMultiSelectField();
$itemInfo->operator = “anyOf”;
$itemInfo->searchValue = array(‘internalId’ => $productsku);
$search = new ItemSearch();
$search->basic = new ItemSearchBasic();
$search->basic->internalId = $itemInfo;
$request = new SearchRequest();
$request->searchRecord = $search;
$searchResponse = $service->search($request);
echo “<pre>”;
print_r($searchResponse);
die;



