---
schema_version: "1"
id: 3a4c62abb0304703a6c635ede107111bf1ae50338b052e84fae2f4163aab30ca
title: CodesetRelationship
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/mfg_api_devguide/sforce_api_objects_codesetrelationship.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.mfg_api_devguide.meta/mfg_api_devguide/sforce_api_objects_codesetrelationship.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 40a397492ebffc14e829193e3ec81d4e782cd093b0c3fa3a80e1f56fdef1596f
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 Manufacturing Cloud 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 Manufacturing Cloud 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.