Loading

How to Associate a Salesforce User with a Case When the Standard Case Contact Field Points to the Contact Object

Publiseringsdato: Jun 18, 2026
Beskrivelse

In Salesforce Service Cloud, the standard Case Contact field (ContactId) is a lookup relationship that links a Case to the Contact object. This field cannot be modified to point to the User object, as it is a standard Salesforce field with a fixed relationship.
Example use case: An internal support team wants to use Cases to track requests from internal Salesforce users (employees) rather than external contacts. However, the standard Case Contact field does not support lookups to the User object.
This article describes the available options for associating a Salesforce User with a Case record.

Løsning

The standard ContactId field on the Case object is hardcoded to the Contact object in Salesforce and cannot be redirected to the User object. The following two options are available as workarounds:

Option 1 — Create a Custom Lookup Field to User

Create a new custom lookup field on the Case object that points to the User object:

  1. Navigate to Setup > Object Manager > Case > Fields & Relationships.
  2. Click New and select Lookup Relationship as the field type.
  3. Set the Related To value to User.
  4. Complete the field wizard, name the field appropriately (e.g., "Internal Requester"), and save.

This field can then be used alongside or instead of the standard Contact field to track the associated Salesforce user.

Option 2 — Custom Automation

Use Salesforce automation tools such as a Flow or Apex trigger to populate a custom field on the Case based on criteria such as the case submitter's user record or an email domain match.

Note: Neither option modifies or replaces the standard ContactId field. Both options add a supplementary mechanism for linking a User to a Case.
Knowledge-artikkelnummer

005226725

 
Laster
Salesforce Help | Article