Platform automation support on desktop versus the Agentforce Life Sciences mobile app
Key Takeaway
On the Life Sciences Cloud mobile app, validation rules show their message before the record is saved, online or offline, while Apex triggers and flows run only on the Salesforce server when the app syncs.
Agentforce Life Sciences runs automation differently on the desktop (Lightning web) experience and on the Life Sciences Cloud mobile app for iPad. The mobile app saves records on the device first. Most server-side automation, such as Apex triggers and flows, runs later, when the app syncs with Salesforce. A consultant needs to know which automation runs at save time on each experience so that business rules fire when the business expects them to.
Desktop versus the mobile app
The desktop (Lightning web) experience supports all of these automation types at save time, as usual:
- Apex triggers
- Before-save and after-save flows
- Screen flows
- Platform events and Change Data Capture
- MuleSoft-based automation
- Validation rules
- Lightning Web Components
- Agentforce Life Sciences Trigger Handlers
- Agentforce
The Life Sciences Cloud mobile app uses an offline-first architecture. Field reps create and edit records in a local database on the iPad, even when they have no connection. Because the save happens on the device, server-side automation doesn't run at the moment a rep saves a record.