Subrecords

A subrecord is similar to a record. You can take many of the same actions with a subrecord as you can with a record. However, like a sublist, an instance of a subrecord is always contained within a parent record. The first subrecord, inventory detail, was exposed to SOAP web services in the 2011.2 endpoint.

Any add, get, update, delete, or search operation on a subrecord must be performed within the context of an operation on its parent record. For example, if you want to update inventory detail data for a purchase order transaction, you must update the purchase order record itself. You cannot do an independent update of the inventory detail object. This limitation applies to all operations on a subrecord.

When working with subrecords, the replaceAll attribute determines whether the subrecord will be added or updated during an update operation on its parent record. If this attribute is set to true, the subrecord is deleted and a new one is added. If replaceAll is set to false, the existing subrecord is updated.

Related Topics

Records in SOAP Web Services
Record Types
Search Records
Using Internal IDs, External IDs, and References
External IDs Overview
Shared Internal and External IDs

General Notices