Using GetSelectValue in Netsuite PHP Toolkit

Nowadays I am working on porting one of my Suite Talk projects to the newer version of Netsuite PHP Toolkit.

In my previous version I use the getSelectValue operation using following code.

new nsComplexObject(
        array('recordType' => $record,'field' => $field)

I converted the code accordingly but the new toolkit was returning this error

No such operation ‘getSelectValue’

After some debugging I found that pageIndex is now a Required Attribute, so I had to add the following line

$request->pageIndex = 0;

Here’s the complete working code

$obj = new GetSelectValueFieldDescription();
$obj->recordType = $recordType;
$obj->field = $field;

$request = new getSelectValueRequest();
$request->fieldDescription = $obj;
$request->pageIndex = 0;

$getResponse = $service->getSelectValue($request);

I am a web developer working @ Gaditek

Posted in Netsuite, Programming & Development
2 comments on “Using GetSelectValue in Netsuite PHP Toolkit
  1. Anonymous says:

    Thanks for that tip. But i still can’t get it working for a custom record. An example of that would be really appreciated. Thanks

  2. Anonymous says:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

About me
A geek trying to make world a better place to live.

I work on LAMP Stack, SRE and resilience engineering. I also worked on Python, GAE and Netsuite Customization. Currently working @ Cloudways as Software Architect

Profile Links Linkedin | Github | Stackoverflow
Subscribe to this blog
%d bloggers like this: