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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Records, Fields, Forms, and Sublists in <strong>Web</strong> <strong>Services</strong>Working with Fields in <strong>Web</strong> <strong>Services</strong>55Note: You cannot set the Custom Form field to NULL. (This field is available ontransaction and entry forms to indicate the form that should be used.) Any requestto set it this field to NULL with nullFieldList will be ignored.Sample .NET CodeCustomer cust = new Customer();cust.setInternalId = “373”;NullField nfl = new NullField(new String[]{"custentity9"});cust.setNullFieldList(nfl);_service.update(cust);Sample Java CodeCustomer cust = new Customer();cust.setInternalId(“373”);NullField nfl = new NullField(new String[]{"custentity9"});cust.setNullFieldList(nfl);port.update(cust);Custom Fields and Joined SearchesWhen a custom field is used to create a parent/child relationship between two existing records,the resultant joined searches available through the <strong>NetSuite</strong> UI are NOT supported in <strong>Web</strong>services.User Defined ListsIn <strong>SuiteTalk</strong>, many fields require internal ID values that correspond to an item in a userdefinedlist. To locate the internal ID of a specific value in a user-defined list, you must have theShow internal IDs preference enabled in your account. See Enabling the Show Internal IDsPreference in the <strong>NetSuite</strong> Help Center for details.After enabling the Show Internal IDs preference, you can then navigate to the appropriate listwithin <strong>NetSuite</strong>. The internal ID values (also referred to as nsKeys) are displayed for each listitem.For example, the Status (entityStatus) field on the Customer record takes an internal ID valuefrom the Customer Status list, which is a user-defined list located at Setup > Sales > CustomerStatuses. If you navigate to this page in <strong>NetSuite</strong>, you can see the internal ID values for eachitem in the column called Internal ID (see figure).<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!