App projects: Difference between revisions

Jump to navigation Jump to search
Line 227: Line 227:


: This setting can have a considerable impact on sync performance and [[API calls|API count]], especially when enabled for an object with a large number of records. After enabling this option, full sync is needed on all mobile devices.
: This setting can have a considerable impact on sync performance and [[API calls|API count]], especially when enabled for an object with a large number of records. After enabling this option, full sync is needed on all mobile devices.
{{Note|'''Owned and Shared''' means that from all of the files linked to the record, only a subset where the link to the same file exists in the user library or is explicitly shared with the user (except ones excluded by sync filter) will be available in the app. The limitation applies to users with “View All Data” permission, too. This means regular Salesforce API query call is used as described on [https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_contentversion.htm Salesforce Developers web].
What is not intuitive but important to know is that '''Owned and Shared''' means that regular full/incremental sync is executed on ContentDocument and ContentVersion, applying only its sync filter. So if the app user sees a lot of files, even unrelated to other downloaded records, they are also downloaded.
'''Owned and Shared''' has the most efficient sync but is almost never suitable for real-world situations.
Option '''None''' means that no files linked to downloaded records of the target entity are downloaded.
Option '''All''' means that all files linked to downloaded records of the target entity are downloaded (except ones excluded by sync filter) in a separate query call.
We recommend that you use '''All''' or '''None''' to have the most control over the total amount of files downloaded. Since '''All''' has quite a large impact on sync (basically, full sync of parent records is executed on every sync, but it is downloading no attributes of records, just a list of its linked files, and then downloads new files), we recommend to use it only for entities where needed and the better sync filter for parent entity, the better sync performance.|Tip}}


; Synchronize entity feed: Required for each object where you want to use [[chatter]]. This option is selected automatically when you add a chatter tab to any [[form]] of that object.
; Synchronize entity feed: Required for each object where you want to use [[chatter]]. This option is selected automatically when you add a chatter tab to any [[form]] of that object.

Navigation menu