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 Records in <strong>Web</strong> <strong>Services</strong>48In cases where a client application already maintains references between records, setthe externalId attribute for each record during imports. In subsequent API calls, youcan then reference associated records by the known external ID.• Establishing relationships during a single import operationFor example, suppose you want to import customer records with references to salesreps into <strong>NetSuite</strong>. If no external ID is used, you would need to import the customerrecords, determine the IDs of the related sales reps’ employee records, and then reimportthe customer records with the sales reps ID references. By providing anexternal ID you can import the customer records in a single API call using the externalID references to the sales reps.Important: External IDs can be updated through CSV or <strong>Web</strong> services. Therefore, it isrecommended that your organization use a single approach for maintainingexternalIds so that externalIds are not unknowingly updated using twoseparate methods.Although records of a particular type may be used in multiple integrationscenarios, each record instance can only have a single external ID value. Inorder to maintain data integrity, only a single integrated application can setand update external ID values for each record type. External ID values for allrecords of a particular type must all come from the same externalapplication.Copying smbXML Handles into ExternalIDsTo facilitate migrations from smbXML to <strong>Web</strong> services, <strong>NetSuite</strong> copies over the handles of allnew and existing records that were created using smbXML into <strong>Web</strong> services externalId fields.Existing handles will not be copied if there is already a value in the externalId field.It is important to note that externalIds in <strong>Web</strong> services can be edited. Therefore, it isrecommended that once you migrate your data from smbXML to <strong>Web</strong> services, you shouldmaintain the data using <strong>Web</strong> services.Important: Updating an externalId in <strong>Web</strong> services does not update its correspondingsmbXML handle.Note that you cannot copy the value of an external ID into an smbXML handle.<strong>NetSuite</strong> Record Types that Support External IDNot all <strong>NetSuite</strong> record types support the use of external ID values. The following table lists the<strong>NetSuite</strong> record types that support external ID.Record TypeAccountAssembly BuildAssembly ItemAssembly UnbuildCampaign<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!