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:
- 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.
- On the device, the app downloads (primes) those records into local storage and also caches record pages.
- While offline, users edit and create records; each change goes into a local queue of pending operations.
- When the device reconnects, the queue is processed in order against Salesforce APIs; server-side validation rules, triggers and flows run as normal.
- 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.