logo
logo
Sign in

What is Salesforce SmartStore?

avatar
sonaligm



SmartStore is an encrypted NoSQL-style JSON document data store. In fact, it is the only cross-platform encrypted NoSQL mobile database on the market that works with both hybrid and native development models

  1. Salesforce Mobile SDK SmartStore to store encrypted data in a NoSQL-style database on both iOS and Android devices.
  2. The app’s connectivity should be transparent to the user, and switching between online and offline should be seamless.
  3. This allows users to focus on using the app to do their job rather than about with online / offline settings.
  4. The app cloud salesforce will first attempt to load records from SmartStore. If none exist, it will check if the device is online. If it is, finally it will attempt to load the records from Salesforce.com.

The above method is good for reading data from the salesforce integration

What if the user needs to be able to Create, Update, or Delete data?

  1. Any time a record is upserted or deleted in the app, the local copy of that record is upserted or deleted and a queue record is created too.
  2. If the app is online, the record can be upserted or deleted in Salesforce.com immediately and the queue record can be deleted.
  3. Since the queue record isn’t deleted until a successful response is received from the salesforce cloud services API, this ensures that no data will be lost regardless of whether the device is online, offline, or has a bad connection and a synchronization error occurred during data transfer.
  4. Salesforce consulting services can also calculate values for some fields by using formula fields, workflow rules, or triggers. It’s a good practice to query for any recently upserted records just to make sure the data is in sync across Salesforce and the mobile device.










collect
0
avatar
sonaligm
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more