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;
Beginner Asked on January 9, 2024 in Other.
Add Comment
0 Answer(s)

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   SuiteMigration   Become a Sponsor