10.07.2015 Views

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SuiteTalk (Web Services) Platform Guide - NetSuite

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Web</strong> <strong>Services</strong> OperationsgetCustomization152}C# Sampleprivate void getCustomization(){this.login(true);CustomizationType ct = new CustomizationType();ct.getCustomizationType = GetCustomizationType.customRecordType;ct.getCustomizationTypeSpecified = true;GetCustomizationResult response = _service.getCustomization(ct);if (!response.status.isSuccess)Console.WriteLine("ERROR: addRigLocation - no records found");else{CustomRecordType[] rl = null;rl = new CustomRecordType[response.recordList.Length];for (int i = 0; i < response.recordList.Length; i++){rl[i] = (CustomRecordType)response.recordList[i];}}Console.WriteLine("Record: " + rl[i].recordName + " " +rl[i].internalId);}PHP Samplerequire_once '../PHPtoolkit.php';require_once 'login_info.php';global $myNSclient;# GETCUSTOMIZATION ON ITEM CUSTOM FIELDS# ===============//set the getCustomizationType (i.e crmCustomField, customList, customRecordType,//entityCustomField, itemCustomField, itemOptionCustomField, otherCustomField,//transactionBodyCustomField, transactionColumnCustomField)$getCustomizationType = 'itemCustomField';// perform getCustomization operation$getCustomizationResponse = $myNSclient->getCustomization($getCustomizationType);// handle responseif (!$getCustomizationResponse->isSuccess) {echo "" . $getCustomizationResponse->statusDetail[0]->message . "";} else {}echo "SUCCESS!!!";<strong>SuiteTalk</strong> <strong>Platform</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!