---
schema_version: "1"
id: 77c6e25f2b465379e7dd9af98ecf365a19eedf91e18b419496cfd62790abf5cf
title: ReceivedDocument
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/life_sciences_dev_guide/sforce_api_objects_receiveddocument.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_objects_receiveddocument.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: e45448cc2c9e1263de242aa49e11a6a681ca881d1a02fb193199a05461f6b976
description: Contains a request for an operation to be performed on a document, such as rotating, splitting, or text extraction. This object is available in API version 50.0 and later.
---
# ReceivedDocument

Contains a request for an operation to be performed on a document, such as rotating, splitting, or text extraction. This object is available in API version 50.0 and later.

## Supported Calls

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), search(), undelete(), update(), upsert()

## Fields

### Direction

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Specifies whether the org is receiving or sending the document.
- **Possible values**:
    - INCOMING—Incoming
    - OUTGOING—Outgoing

### DocumentNumber

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Nillable, Sort, Update
- **Description**: Unique document identification number.

### HasAutoOcrDisabled

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort
- **Description**: Determines whether text is extracted from the document automatically. Default is False.

### IsActive

- **Type**: boolean
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: Specifies whether the document is being processed.

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed a record related to this record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The timestamp for when the current user last viewed this record. If this value is null, it's possible that this record was referenced (LastReferencedDate) and not viewed.

### Name

- **Type**: string
- **Properties**: Create, Filter, Group, idLookup, Sort, Update
- **Description**: The name of the received document.

### OcrStatus

- **Type**: picklist
- **Properties**: Create, Defaulted on create, Filter, Group, Nillable, Restricted picklist, Sort
- **Description**: Current state of the text extraction process.
    
    Possible values are: Draft, Approved, In Approval, In Review, Obsolete, Superseded, Archived. Default is Draft.

### OwnerId

- **Type**: reference
- **Properties**: Create, Defaulted on create, Filter, Group, Sort, Update
- **Description**: The user who owns the ReceivedDocument record.

### Priority

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Determines the order in which the document is processed when it is part of a queue.
- **Possible values**:
    - ONE—1
    - THREE—3
    - TWO—2

### Source

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: Origin of the incoming document. Can be used to specify processing priority.

### Status

- **Type**: picklist
- **Properties**: Create, Filter, Group, Restricted picklist, Sort, Update
- **Description**: Current stage of processing.
- **Possible values**:
    - APPROVED
    - ARCHIVED
    - COMPLETED—Document processing is complete.
    - DRAFT
    - IN\_REVIEW
    - NEEDS\_REVIEW—Document requires review, for example because processing couldn’t be completed.
    - OBSOLETE
    - PROCESSING—Document processing is in progress.
    - SUPERSEDED

### StatusReason

- **Type**: textarea
- **Properties**: Create, Nillable, Update
- **Description**: Reason for the status when processing and transforming the document.

## Associated Objects

This object has the following associated objects. If the API version isn’t specified, they’re available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.

[ReceivedDocumentChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.life_sciences_dev_guide.meta/life_sciences_dev_guide/sforce_api_associated_objects_change_event.htm "A StandardObjectNameChangeEvent object is available for each object that supports Change Data Capture. You can subscribe to a stream of change events using Change Data Capture to receive data tied to record changes in Salesforce. Changes include record creation, updates to an existing record, deletion of a record, and undeletion of a record. A change event isn’t a Salesforce object—it doesn’t support CRUD operations or queries. It’s included in the object reference so you can discover which Salesforce objects support change events.") (API version 59.0)

Change events are available for the object.