9

Here is my code:

$service    = new NetSuiteService();
$getRequest = new GetRequest();
$getRequest->baseRef = new RecordRef();
$getRequest->baseRef->internalId = "custitem3";
$getRequest->baseRef->type = "itemCustomField";

$result = $service->get($getRequest);
echo "<pre>";
var_dump($result);
echo "</pre>";

And the result is: That record does not exist.

But that custom item field show in Set up > Customization > Item fields in netsuite backend

Lan Nguyen
  • 445
  • 2
  • 6
  • 13

2 Answers2

0

If you are after the value of the custom item field, the item record itself should be loaded.

eliseobeltran
  • 568
  • 3
  • 11
0

The anwser is: internal id must send in uppercase: CUSTITEM3

Lan Nguyen
  • 445
  • 2
  • 6
  • 13