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.

TypesComplex Types96Field Name XML Schema Type Req NotesinternalId xsd:string (attribute) Y References the primary record internal Id.This Id corresponds to the type of customrecord. For a list of possible values, seeListOrRecordRef.typeId xsd:string Y References the custom record type Id.type xsd:string (attribute) N Reference to a value in a <strong>Web</strong> services onlysystem list.name xsd:string NListOrRecordRefThe listOrRecordRef type is defined in core.xsd.Field Name XML Schema Type Req NotesinternalId xsd:string (attribute) Y See Using Internal IDs, External IDs, andReferences.externalId xsd:string (attribute) N Use to reference records by their externalID in select and multi-select custom fields.typeId xsd:string (attribute) N Reference to a value in a <strong>Web</strong> services onlysystem list.name xsd:string N This is a read-only field that is populatedby <strong>NetSuite</strong> when it’s a part of a get orsearch response. If this field is populatedduring a write operation, it is ignored.Each record type in <strong>NetSuite</strong> has a corresponding internal ID (or typeId). This internal ID isrequired when using ListOrRecordRef since the type of record being referenced needs to bespecified.For example, in the following code a new ListOrRecordRef object is created. The list referencesa specific Entity record as designated by the internalId of 1011 and specifies that the record isof the type customer (-2). Note that customer records have an internal ID of -2 as shown in thetable below.ListOrRecordRef[] fieldNameEntity = new ListOrRecordRef[1];fieldNameEntity[0] = new ListOrRecordRef();fieldNameEntity[0].setInternalId("1011");fieldNameEntity[0].setTypeId("-2");StatusThe Status type contains an array of objects of type StatusDetail. The status type is defined incore.xsd.<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!