> ## Documentation Index
> Fetch the complete documentation index at: https://docs.unifygtm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Toggle lead assignment rules in Salesforce

> Troubleshoot a common bug in Salesforce related to lead assignment rules.

## Explanation

Salesforce allows you to create "lead assignment rules" that automatically assign different owners to leads depending on custom criteria. However, sometimes these rules don’t work right off the bat due to a specific bug in Salesforce. The steps outlined here should resolve the issue.

## Steps

### Ensure you have an active lead assignment rule

Navigate to the **Setup** page in Salesforce by clicking the settings icon in the top-right corner of any Salesforce page.

<Frame>
  <img src="https://mintcdn.com/unify-19/hCdysogYM6qFbUs-/images/active-lead-assignment-rule-step-1.png?fit=max&auto=format&n=hCdysogYM6qFbUs-&q=85&s=225c290fe4ff35d75b032c2708a8fa19" alt="active-lead-assignment-rule-step-1" width="362" height="402" data-path="images/active-lead-assignment-rule-step-1.png" />
</Frame>

Search for **Lead Assignment Rules** in the sidebar.

<Frame>
  <img src="https://mintcdn.com/unify-19/hCdysogYM6qFbUs-/images/active-lead-assignment-rule-step-2.png?fit=max&auto=format&n=hCdysogYM6qFbUs-&q=85&s=df1192fdef7dbe47181e75614280823c" alt="active-lead-assignment-rule-step-2" width="500" height="500" data-path="images/active-lead-assignment-rule-step-2.png" />
</Frame>

You should see at least one rule with a checkmark under the **Active** column.

<Frame>
  <img src="https://mintcdn.com/unify-19/hCdysogYM6qFbUs-/images/active-lead-assignment-rule-step-3.png?fit=max&auto=format&n=hCdysogYM6qFbUs-&q=85&s=c4ecd26c8b2c77122f1b5650d37b8046" alt="active-lead-assignment-rule-step-3" width="2388" height="620" data-path="images/active-lead-assignment-rule-step-3.png" />
</Frame>

### Toggle the rule off and on

In the **Lead Assignment Rules** page from the previous step, click on the name of your rule and then select **Edit**. Deselect the checkbox next to **Active** to temporarily deactivate the rule.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/toggle-rule-off-on-step-2.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=2ffa4ba0241fb40208789e10f54051c6" alt="toggle-rule-off-on-step-2" width="1012" height="558" data-path="images/toggle-rule-off-on-step-2.png" />
</Frame>

Click **Save**. Then click **Edit** again, re-check the checkbox next to **Active**, and then choose **Save**.

### Test that leads are assigned correctly in the UI

Navigate to the **Leads** page in Salesforce. You can get there via the app launcher.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/test-leads-correctly-assigned-step-1.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=44d52b741ccb9a6009cabc35e9bef711" alt="test-leads-correctly-assigned-step-1" width="648" height="482" data-path="images/test-leads-correctly-assigned-step-1.png" />
</Frame>

In the top-right corner of the screen, select **New** to create a new lead.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/test-leads-correctly-assigned-step-2.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=a82b6a990a7ce6fed11bae2b771725a5" alt="test-leads-correctly-assigned-step-2" width="1126" height="82" data-path="images/test-leads-correctly-assigned-step-2.png" />
</Frame>

Check the **Assign using active assignment rule** checkbox in the lower-left corner.

<Frame>
  <img src="https://mintcdn.com/unify-19/QTxNj2fcd-br9FnE/images/test-leads-correctly-assigned-step-3.png?fit=max&auto=format&n=QTxNj2fcd-br9FnE&q=85&s=ca073da311624856c0b44932b7f81538" alt="test-leads-correctly-assigned-step-3" width="1994" height="1206" data-path="images/test-leads-correctly-assigned-step-3.png" />
</Frame>

Fill out the required lead fields with values that should trigger the lead assignment rule you created and then click **Save** in the bottom-right corner.

Lastly, verify that the lead was assigned to the correct owner.
