# ExternalRef type


An id that another system knows a record by. Use it to find the record that an external
source's own record matches.

## Fields

### source

`String!`

The external source's code, for example `SHOP`. It is the same string as
`SalesOrder.source`.

### externalId

`String!`

The record's id in the external source.

### parentExternalId

`String`

The id of the record's parent in the external source. Set when the id is unique only under
its parent.

### externalNumber

`String`

The number that the external source shows for the record. Null when none was recorded.

### side

[`TransferSide`](/chameleoon-max/type/transfer-side)

Which of a transfer's two records the reference names: `OUT` or `IN`. Set only on a transfer,
when the external source made two records of it (for example OBERON's release note and
receipt note). Null when the external source made one record, and null on every other
record.

## Used by

- [`ExternalRefConnection`](/chameleoon-max/type/external-ref-connection)
- [`ExternalRefEdge`](/chameleoon-max/type/external-ref-edge)
