CT Mobile Replication

CT Mobile Replication is a custom metadata type to keep data up to date on the device in case of modified sharing rules.

During the fast or mixed synchronization, only records with the modified SystemModStamp field will be downloaded. However, if you changed sharing rules (via organization-wide defaults or per each record), the value in the SystemModStamp field is not modified. Specify the CT Mobile Replication setting to download the corresponding records and hide records, which are no longer available.

The CT Mobile Replication is affected when the specified date and time in the clm__Date__c field are later than the current date and time.

Specify and refresh the value in this field manually, or create an Apex class to refresh the field’s value with the date and time on the schedule.

CT Mobile Replication helps to speed up the synchronization process by uploading separate metadata components. The common use cases are presented here.


Custom metadata type API name: clm__Replication__mdt


Field API Name Type Description

Affected Users

clm__UserIds__c

Long Text (131072)

User ID(s) who have been affected by the change of the data access model.

  • The 15- and 18-digit IDs are supported.

  • Since CT Mobile 2.3, If the affected users are not specified, the CT Mobile Replication setting will be applied to all users.

Components

clm__Components__c

Long Text (32768)

The list of metadata components that were altered.

Date

clm__Date__c

Date/Time

The date and time of changes are used as the major criterion when the application requests data.

Object Name

clm__ObjectAPIName__c

Text (255)

The API name of the object with updated access rights.

Package Size

clm__PackageSize__c

Double (4,0)

The number of selected object’s records with all fields in the SOQL query. The default value is 300 records of IDs.

SELECT field_names FROM table_name WHERE id IN ('18-digit_id','',..)

Specify the value to reduce the number of API calls considering that the size of the SOQL query cannot exceed 20 000 characters. For more information, please refer to SOQL and SOSL limits.

Related Objects

clm__RelatedObjects__c

Long Text (32678)

The API name(s) of related objects whose records must be downloaded to the CT Mobile app again.

Type

clm__Type__c

Picklist

The type of setting:

  • Data

  • Metadata

``