Reference Fields

Many objects have one or more properties referencing a related object of a certain type by its internal ID value.

Whereas the internal ID field [id] is analogous to a primary key in relational databases and cannot be modified, reference fields are analogous to foreign keys and can be modified using a command performing a create or update operation.

The reference field value must either be:

After you read an object including reference field properties, you can read each objects referenced by internal ID to get additional information about related objects.

When you add, update or upsert an object, you can use a related object lookup to set the internal ID of any related object indirectly if you know the external ID or the name of this related object. See Adding, Updating and Upserting Objects.

For some object types, you cannot delete an object if this object is referenced by another object. For more information about dependencies preventing deletion, see XML and SOAP API Business Object Reference and the usage guidelines for individual business object type.

Note:

Access control rules for the authenticated users may restrict viewing or editing the referenced objects.