Loading

Salesforce Lightning Experience Error: You Can't Relate an Account, Opportunity, or Other Object to a Task Already Related to a Lead

Julkaisupäivä: Oct 12, 2026
Kuvaus

When you create a new task on the lead object in Salesforce Lightning Experience and enter a value in the Related To field, the following message appears:

You can't relate an account, opportunity, or other object to a task already related to a lead.

When you create a task on the lead object in the Classic interface, the Related To field is grayed out and unavailable for editing.

For example, a sales rep creating a follow-up task on a lead sees this error when trying to link the task to an Opportunity. A custom Quick Action resolves the error.

Ratkaisu

This article explains why Salesforce Lightning Experience shows the error "You can't relate an account, opportunity, or other object to a task already related to a lead" when you create a task on a lead, and how to resolve it with a custom Quick Action.

Why the Related To Field Shows an Error on Lead Tasks

This behavior is expected and working as designed, because the Related To field needs to be available for population once the lead is converted. Salesforce reserves the Related To field on lead tasks for after the lead converts into a Contact, Account, and optionally an Opportunity. By default, Lightning Experience uses the default global action for creating a new task on the lead object.

Fix: Create a Custom Quick Action for Lead Tasks

The fix is to create a custom Quick Action for tasks on the Lead page layout that excludes the Related To field.

  1. Create a custom quick action to create a task, and remove the Related To field from the layout or make the Related To field read-only on the layout.
  2. Remove the default Create Task Global Action from the Lead Page Layout.
  3. Add your custom action to the Lead Page Layout in its place.

With the custom action in place of the default global action, users no longer see or edit the Related To field in Lightning Experience.

Knowledge-artikkelin numero

000388265

 
Ladataan
Salesforce Help | Article