---
schema_version: "1"
id: 3e58611d93e0829e9c7d7ba15901e1f9889de39a22ac5610b2068fab9f1dc296
title: ProblemDefRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/health_cloud_object_reference/hc_r4_objects_problemdefrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.health_cloud_object_reference.meta/health_cloud_object_reference/hc_r4_objects_problemdefrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f33436169c6687134d19dbaffb46fce6b38035c09ca9aa140bc65d21a80ce12d
description: Represents a junction between a problem definition and a related problem definition. This object is available in API version 64.0 and later.
---
# ProblemDefRelationship

Represents a junction between a problem definition and a related problem definition. This object is available in API version 64.0 and later.

## Supported Calls

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

## Fields

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

### ProblemDefinitionId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The parent problem definition record associated with the problem definition relationship. This field is a relationship field.
- **Relationship Name**: ProblemDefinition
- **Relationship Type**: Master-detail
- **Refers To**: ProblemDefinition (the master object)

### RelatedProblemDefinitionId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort, Update
- **Description**: The related problem definition record associated with the problem definition relationship. This field is a relationship field.
- **Relationship Name**: RelatedProblemDefinition
- **Refers To**: ProblemDefinition

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

[ProblemDefRelationshipChangeEvent](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.

[ProblemDefRelationshipHistory](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.