# How does the Sales Cloud mobile offline sync queue handle data modifications during disconnected periods?

**Topic:** Sales Cloud · **Difficulty:** Medium · **Tags:** Sales Cloud, Mobile App, Offline Sync

Read it on the site: https://www.forcechallenges.com/interview-questions/how-does-the-sales-cloud-mobile-offline-sync-queue-handle-data-modifications-during-disconnected-periods

## Answer

**Basics:** Field and travelling sales reps lose signal. Offline mode lets them open already-downloaded records, edit or create supported records, and keep working. Salesforce Field Service (formerly Field Service Lightning) has its own offline model with the same idea.

**How it works:**
1. Admin enables offline in Setup (Salesforce Mobile App > Offline) and defines a Briefcase (Briefcase Builder) that lists the objects and filters (for example my open Opportunities, their Accounts and Contacts) to prime.
2. On the device, the app downloads (primes) those records into local storage and also caches record pages.
3. While offline, users edit and create records; each change goes into a local queue of pending operations.
4. When the device reconnects, the queue is processed in order against Salesforce APIs; server-side validation rules, triggers and flows run as normal.
5. Failures (validation error, deleted record, permission change) are surfaced to the user for correction or discard.

**Advanced / deep dive:** Conflicts occur when the server record changed after priming. Behavior and the resolution options vary by feature and release (queued edits may overwrite, or the user may be prompted); verify current offline conflict documentation before promising last-write-wins. Queued changes are local until synced, so unsynced data is at risk if the app is uninstalled. Not every object, field type or UI is offline capable; custom LWCs must be offline-ready (use supported wire adapters and avoid unsupported imperative Apex patterns; check the offline guidance and any component pre-caching rules). Priming volume matters: large briefcases slow the first sync and use device storage. Design briefcase filters around the rep's real work set, not the whole org. Because server automation runs on replay, bulk-heavy flows can behave differently than if the edit were online.

**Code / config example:**
```
Setup > Salesforce Mobile App > Offline > Enable
Setup > Briefcase Builder > New Briefcase
  Object: Opportunity  Filter: OwnerId = Current User AND IsClosed = false
  Object: Account      Filter: related to the above
Assign briefcase to the sales profile / permission set
```

**Hidden gotchas & must-remember points:**
- Only primed data is available offline; unprimed records show nothing.
- Validation rules fire at sync time, so a change that looked saved can be rejected later.
- Custom components need to be offline compatible or they will not render.
- Briefcase and record-count limits exist; verify current numbers.
- Edits made offline do not appear in reports until synced.
- Field Service has a separate offline engine and settings.

**Best practice:** Prime a narrow, filtered data set, test the full offline create/edit/reconnect path with real validation rules, and train reps to sync before leaving coverage.

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