The following example attempts to get all available shipping method of a Sales Order:
<?php
require_once './PHPToolkit/NetSuiteService.php';
set_time_limit(0);
$service = new NetSuiteService($pref);
$service->setPreferences(false, false, false, true);
$fieldDescription = new GetSelectValueFieldDescription();
$fieldDescription->recordType = RecordType::salesOrder;
$fieldDescription->field = "shipmethod";
$request = new getSelectValueRequest();
$request->fieldDescription = $fieldDescription;
$request->pageIndex = 0;
$getResponse = $service->getSelectValue($request);
var_dump($getResponse);
No comments:
Post a Comment