# How does offline data synchronization work under the hood in the Salesforce Field Service mobile app, including the upload queue and sync errors?

**Topic:** Field Service · **Difficulty:** Medium · **Asked at:** Capgemini, Infosys, Deloitte · **Tags:** Offline Sync, Mobile App, Briefcase, Salesforce Field Service

Read it on the site: https://www.forcechallenges.com/interview-questions/describe-the-underlying-mechanism-of-offline-data-synchronization-in-the-sfs-mobile-app

## Answer

The mobile app works from a **local database on the device**, so technicians can keep working with no signal.

**Mechanism**
1. **Priming**: at login (and periodically) the app downloads the records the technician needs, such as appointments, Work Orders, Assets and Products, based on **Briefcase Rules**. These are stored locally.
2. **Working offline**: reads come from the local store. Edits (status change, Products Consumed, Service Report, flow results) are saved locally and put in an **upload queue**.
3. **Sync**: when connectivity returns, queued changes are sent to Salesforce in order, then the app pulls server-side changes (for example a new dispatch).
4. **Conflicts and errors**: server rules still apply on upload. If a validation rule, required field, record lock or permission problem rejects a change, the app shows an error, and the technician or admin must correct or discard it.

**Design implications**
- Keep validation rules and triggers tolerant of delayed uploads.
- Keep the data set small for faster priming.
- Avoid features that need a live server call, such as direct Apex callouts, in offline flows.
- Test with airplane mode and with conflicting edits.

---
Source: ForceChallenges · last updated 2026-10-31
