Filtering Salesforce Records For Offline Sync

All Salesforce fields have additional offline filters to reduce the number of records to sync for offline use and allow additional record filtering when searching for records while offline.

The following example demonstrates how to filter records for offline sync based on the current user's Salesforce Id.

OwnerId = '{{Formyoula_User_Salesforce_Id}}'
image

Optional offline record filter to further narrow down the records that need to be displayed in the search results.

(function(record) {
	// Return records where the ownerId matches the current user Salesforce Id
  return record.ownerId == '{{Formyoula_User_Salesforce_Id}}' && record.type = '{{Client Type}}';
});

For any questions, please contact us - [email protected] or the Formyoula in-app chat 🙂