Friday, January 25, 2019

PHP Toolkit 2012.2: Sample code to clear or delete value of a field

Note: The information contained in this article may or may not lead to the alteration of data in your production account, thus NetSuite holds no liability whether you choose to follow the instructions. In the event that data is deleted, altered or removed and requires restoration there will be applicable fees. Please proceed with caution.

The update operation is used to update an instance of a record in NetSuite. It is similar to the updateList operation, which allows users to update more than one record at a time.

The code template below shows the usage of a nullfield list to clear an already set field for the email address and phone fields using PHP ToolKit

Note: This article requires existing knowledge of Web Services and PHP.

$nullFieldArray = array();                                     $nullFieldArray['name'] = array();                             $nullFieldArray['name'][] = 'email';     //clear email address $nullFieldArray['name'][] = 'phone';     //clear phone number  $caseFields['nullFieldList'] = $nullFieldArray;                

No comments:

Post a Comment