---
schema_version: "1"
id: 34a43fa8fb72d21e88aac7c16fceffe608885a841c337ff37690a0195f05a98b
title: CaseRelatedFile
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/sforce_api_objects_caserelatedfile.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_objects_caserelatedfile.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 460316a2d2ce0cc7a491e990647f3ded5a8c11cce5de50906eca2e1f94ec523c
description: Represents the details of a file attached to a case, such as file properties, file processing details, and other additional relevant information. This object is available in API version 62.0 and later.
---
# CaseRelatedFile

Represents the details of a file attached to a case, such as file properties, file processing details, and other additional relevant information. This object is available in API version 62.0 and later.

## Supported Calls

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

## Fields

### CaseId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The case associated with the case related file.
    
    This field is a relationship field.
- **Relationship Name**: Case
- **Relationship Type**: Master-detail
- **Refers To**: Case (the master object)

### ContentDocumentId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The content document associated with the case related file.
    
    This field is a relationship field.
- **Relationship Name**: ContentDocument
- **Refers To**: ContentDocument

### LastReferencedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user referenced the record.

### LastViewedDate

- **Type**: dateTime
- **Properties**: Filter, Nillable, Sort
- **Description**: The most recent date on which a user viewed the record.

### Name

- **Type**: string
- **Properties**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: The name of the case related file.

### ProcessDefinitionReferenceId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The batch calc job definition associated with the case related file.
    
    This field is a relationship field.
- **Relationship Name**: ProcessDefinitionReference
- **Refers To**: BatchCalcJobDefinition

### ProcessStage

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Specifies the stages during processing.
- **Possible values**:
    - Mapping
    - Processing
    - Staging

### ProcessStatus

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update
- **Description**: Specifies the current status of the case related file during processing.
- **Possible values**:
    - Complete
    - Failed
    - InProgress
    - InReview

### SourceDatasetName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the source dataset for processing.

### TargetDatasetName

- **Type**: string
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The name of the target data created through the transformation of the source dataset.

## 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.

[CaseRelatedFileChangeEvent](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/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.")

Change events are available for the object.

[CaseRelatedFileHistory](https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/sforce_api_associated_objects_history.htm "StandardObjectNameHistory is the model for all history objects associated with standard objects. These objects represent the history of changes to the values in the fields of a standard object.")

History is available for tracked fields of the object.