# How do mass transfer tools facilitate ownership reassignment when sales territories undergo restructuring?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Mass Transfer, Territory Management

Read it on the site: https://www.forcechallenges.com/interview-questions/how-do-mass-transfer-tools-facilitate-ownership-reassignment-when-sales-territories-undergo-restructuring

## Answer

**Basics:** When reps leave or territories change, records must move. Ownership drives visibility under Private OWD, forecast roll-up and reporting, so transfers must be controlled.

**How it works:**
1. Setup > Data Management > Mass Transfer Records: choose Accounts, Leads, Service Contracts or custom objects (the wizard does not directly transfer Contacts or Opportunities).
2. Enter the current owner and optional filters; the wizard lists up to 250 matching records at a time.
3. Select a new owner. For Accounts, choose to also transfer open opportunities, closed opportunities and cases owned by the account owner, and whether to keep team members.
4. Optionally notify the new owner.
5. Alternatively use list view Change Owner (limited to a set number of records per action) or an update of OwnerId through Data Loader.

**Advanced / deep dive:** Transfers trigger sharing recalculation, workflow and flow, and may reassign child ownership; at scale use Defer Sharing Calculations for large moves, and run in off-hours. Prior owner access to transferred records can vanish under Private OWD, unless it is retained through teams. Enterprise Territory Management assignments are separate from ownership, so territory changes do not move owners. For rule-based, repeatable transfers, build a Flow or Batch Apex keyed on a mapping table. Inactive users can own records, but deactivating a user does not transfer anything automatically; plan transfers before deactivation. Watch Account ownership side effects on contacts, opportunities and sharing.

**Code / config example:**
```apex
public class ReassignAccounts implements Database.Batchable<SObject> {
  Id fromId, toId;
  public ReassignAccounts(Id f, Id t) { fromId = f; toId = t; }
  public Database.QueryLocator start(Database.BatchableContext bc) {
    return Database.getQueryLocator('SELECT Id FROM Account WHERE OwnerId = :fromId');
  }
  public void execute(Database.BatchableContext bc, List<Account> scope) {
    for (Account a : scope) a.OwnerId = toId;
    Database.update(scope, false); // partial success
  }
  public void finish(Database.BatchableContext bc) {}
}
```

**Hidden gotchas & must-remember points:**
- The wizard works on Accounts, Leads, Service Contracts and custom objects, not directly Contacts or Opportunities.
- It processes batches of up to 250 records per transfer screen.
- Closed opportunities and cases move only if you tick the option.
- Ownership change can remove previous owner's access under Private OWD.
- Triggers and flows fire on ownership change.
- Needs the Transfer Record or Transfer Leads permission.

**Best practice:** Dry-run in a sandbox, transfer in batches, and verify sharing and forecast results after.

---
Source: ForceChallenges · last updated 2026-11-02
