---
schema_version: "1"
id: 5f46e37cb17e053c28692ea1cc400d7cfd0c71bc82701aa9010f2fd3dfa1d436
title: CodesetRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/automotive_cloud/sforce_api_objects_codesetrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.automotive_cloud.meta/automotive_cloud/sforce_api_objects_codesetrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 88225d49ae434f083cdd8511360979e54b16027562ea7bd2f03a105d77b5f243
description: Represents a relationship between a codeset and its related codeset. For example, a labor code associated with a fault code. This object is available in API version 58.0 and later.
---
# CodesetRelationship

Represents a relationship between a codeset and its related codeset. For example, a labor code associated with a fault code. This object is available in API version 58.0 and later.

## Supported Calls

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

## Fields

### CodeSetId

- **Type**: reference
- **Properties**: Create, Filter, Group, Sort
- **Description**: The codeset that's associated with another related codeset. This field is a relationship field.
- **Relationship Name**: CodeSet
- **Relationship Type**: Lookup
- **Refers To**: CodeSet

### CodeSetType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The type of the codeset.

### 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**: Autonumber, Defaulted on create, Filter, idLookup, Sort
- **Description**: Autogenerated name of the codeset relationship.

### RelatedCodeSetId

- **Type**: reference
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The related codeset that's associated with the codeset. This field is a relationship field.
- **Relationship Name**: RelatedCodeSet
- **Relationship Type**: Lookup
- **Refers To**: CodeSet

### RelatedCodeSetType

- **Type**: picklist
- **Properties**: Create, Filter, Group, Nillable, Sort, Update
- **Description**: The type of the related codeset.

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

- [CodesetRelationshipFeed](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_feed.htm): Feed tracking is available for the object.
- [CodesetRelationshipHistory](https://developer.salesforce.com/docs/atlas.en-us.264.0.industries_reference.meta/industries_reference/sforce_api_associated_objects_history.htm): History is available for tracked fields of the object.