Saturday, January 5, 2019

PHP Toolkit 2012.2 > Delete operation on a Standard Record

require_once("PHPToolkit/NetSuiteService.php");

$service = new NetSuiteService();

$recordRef = new RecordRef();
$recordRef->internalId = "2436";
$recordRef->type = RecordType::purchaseOrder;

$request = new DeleteRequest();
$request->baseRef = $recordRef;

$delResponse = $service->delete($request);

var_dump($delResponse);

No comments:

Post a Comment