Hi,
Firstly, I'm retrieving products, but the locationLists are missing. This locationLists should include quantityOnHand based on different locations, but it's currently locationLists showing as null.
$itemRequest = new GetRequest()
$itemRequest->baseRef = new RecordRef()
$itemRequest->baseRef->internalId = 945
$itemRequest->baseRef->type = 'inventoryItem'
$response = $this->service->get($itemRequest)
Second, I checked Netsuite and found that location-based quantityOnHand is displayed correctly. This is visible in a separate view called Item Location Map.
So I checked on Lists > Search > SavedSearch, Where i get InvDetail.
Then i tried to fetch those but there getting error - A saved search with the internal ID 2361 does not exist.
Code:
$search = new \NetSuite\Classes\ItemSearchAdvanced()
$search->savedSearchId = "2361"
// $search->savedSearchScriptId = "customsearch2361"
$request = new SearchRequest()
$request->searchRecord = $search
$response = $this->service->search($request)
Output:
Can someone please help me resolve my issue? I need to access the product's stock. Any assistance is greatly appreciated.