SuiteTalk (Web Services) PHP Toolkit 2013.1 – Initalize Record Example – Vendor Bill to Vendor Credit
type = InitializeType::vendorCredit;$initRef = new InitializeRef();$initRef->type = InitializeRefType::vendorBill;$initRef->internalId = "26";$initRec->reference = $initRef;$initRequest = new InitializeRequest();$initRequest->initializeRecord = $initRec;$getInitResponse = $service->initialize($initRequest);if ($getInitResponse->readResponse->status->isSuccess) { var_dump($getInitResponse->readResponse->record);} else { $statusDetails = $getInitResponse->readResponse->status->statusDetail; foreach ($statusDetails as $statusDetail) { echo $statusDetail->type . ": "; echo $statusDetail->message . "
"; echo $statusDetail->code . "
"; }}?>
No comments:
Post a Comment