---
schema_version: "1"
id: c63aecd33caebe5298208980b8f7d127c16ebe47efcf53c72e928bf73b94634b
title: UserDefinedLabelAssignment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_userdefinedlabelassignment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_userdefinedlabelassignment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 62ac2699f3358c8d9e327a5aa51b4f0c5e94c2225c00ee5a618628bf3fd8ae64
description: Represents a relationship between a record label and the item the user assigned it to. This object is available in API version 61.0 and later.
---
# UserDefinedLabelAssignment

Represents a relationship between a record label and the item the user assigned it to. This object is available in API version 61.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| EntityType | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

Object label of the Item record derived from ItemId. Available in API version 62.0 and later.



 |
| ItemId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

ID of the Item record added to the UserDefinedLabel record.

This field is a polymorphic relationship field.

Relationship Name

Item

Refers To

Account, ActionCadence, ActionCadenceStepTracker, CallTemplate, Case, Contact, EmailTemplate, FlowOrchestrationWorkItem, Lead, Opportunity, Task



 |
| LabelId | 

Type

reference

Properties

Create, Filter, Group, Sort, Update

Description

ID of the UserDefinedLabel record that the Item record is assigned to.

This field is a relationship field.

Relationship Name

Label

Refers To

UserDefinedLabel



 |
| OwnerId | 

Type

reference

Properties

Create, Defaulted on create, Filter, Group, Sort, Update

Description

ID of the user or group that owns this record.

This field is a polymorphic relationship field.

Relationship Name

Owner

Refers To

Group, User



 |
| SortOrder | 

Type

int

Properties

Filter, Group, idLookup, Nillable, Sort

Description

Order of the assigned items for a given UserDefinedLabel record.



 |
| SubjectOrName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Name of the Item record. If it's a task, the value is the subject of the Item record.



 |

## Associated Objects

This object has these 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.

[UserDefinedLabelAssignmentOwnerSharingRule](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_ownersharingrule.htm "StandardObjectNameOwnerSharingRule is the model for all owner sharing rule objects associated with standard objects. These objects represent a rule for sharing a standard object with users other than the owner.")

Sharing rules are available for the object.

[UserDefinedLabelAssignmentShare](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_associated_objects_share.htm "StandardObjectNameShare is the model for all share objects associated with standard objects. These objects represent a sharing entry on the standard object.")

Sharing is available for the object.