cgc_sync__Sync_History__c

Stores information about every sync that’s performed on the mobile app along with its status information and associated Key Performance Indicators (KPIs). This object is available in API version 53.0 and later.

Supported Calls 

create(), delete(), describeLayout(), describeSObjects(), getDeleted(), getUpdated(), query(), retrieve(), undelete(), update(), upsert()

Fields 

Name 

  • Type: string
  • Properties: Autonumber, Defaulted on create, Filter, idLookup, Sort
  • Description: Unique identification of the record.

OwnerId 

  • Type: reference

  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update

  • Description: ID of the owner.

    This is a polymorphic relationship field.

  • Relationship Name: Owner

  • Relationship Type: Lookup

  • Refers To: Group, User

cgc_sync__Connection_Type_At_Start__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Connection type at the start of the sync.

cgc_sync__Device_ID__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Installation ID of the device.

cgc_sync__Duration__c 

  • Type: double

  • Properties: Filter, Nillable, Sort

  • Description: Total time taken for the synchronization process to complete.

    This is a calculated field.

  • Formula:

    1( cgc_sync__End_Date_Time__c -  cgc_sync__Start_Date_Time__c ) * 24*60*60

cgc_sync__End_Date_Time__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Timestamp when the synchronization is completed.

cgc_sync__KPIData__c 

  • Type: textarea
  • Properties: Create, Nillable, Update
  • Description: Collects and stores sync KPI data in a compressed format when a sync operation is run. The KPI data includes metrics such as duration and record count for named fetch trees, named queries, and tracked objects.

cgcloud_dev__KPISbmsStatus__c 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: No longer in use. Indicated the status of KPIs that were submitted for analysis. Possible values were:

    • Complete
    • InProgress
    • Ready

cgc_sync__Number_Of_Detailed_Logs__c 

  • Type: double

  • Properties: Filter, Nillable, Sort

  • Description: Number of detailed log messages.

    This is a calculated field.

cgc_sync__Number_Of_Download_Records__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Number of downloaded records.

cgc_sync__Number_Of_Upload_Records__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Number of uploaded records.

cgc_sync__Start_Date_Time__c 

  • Type: dateTime
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Timestamp when the sync started.

cgcloud_dev__Sync_Completion_Time__c 

  • Type: double

  • Properties: Filter, Nillable, Sort

  • Description: Time taken in seconds to complete a sync process, excluding the queue waiting time. If the Queue sync users at maximum limit setting is disabled, the field takes the Duration value.

    This field is a calculated field.

  • Formula:

    1(cgcloud_dev__End_Date_Time__c - cgcloud_dev__Start_Date_Time__c) * 24*60*60 - cgcloud_dev__Time_In_Queue__c

cgc_sync__Sync_History_Log__c 

  • Type: string

  • Properties: Filter, Nillable, Sort

  • Description: History of the logs created during synchronization.

    This is a calculated field.

  • Formula:

    1HYPERLINK(LEFT($Api.Partner_Server_URL_260, FIND( '/services', $Api.Partner_Server_URL_260)) +
    2'/one/one.app#/alohaRedirect/apex/SyncHistory?deviceid='+ cgc_sync__Device_ID__c + '&datestart=' + TEXT(cgc_sync__Start_Date_Time__c)
    3+ '&dateend=' + TEXT(cgc_sync__End_Date_Time__c),  Name , '_blank')

cgc_sync__Sync_Id__c 

  • Type: string
  • Properties: Create, Filter, Group, Nillable, Sort, Update
  • Description: Stores the unique id of the sync request.

cgc_sync__Sync_State__c 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: The system’s current synchronization state.

  • Possible values:

    • Cancelled
    • Connection Issue
    • Download Issue
    • Error
    • Synchronized
    • Up and Download Issues
    • Upload Issue

cgc_sync__Sync_Success__c 

  • Type: boolean
  • Properties: Create, Defaulted on create, Filter, Group, Sort, Update
  • Description: Indicates whether the sync completed successfully (true) or not (false).
  • Default value: false

cgc_sync__Sync_Triggered_By__c 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: Source that triggered the sync.

  • Possible values:

    • Scheduler
    • SyncOnOnline
    • SyncOnResume
    • SyncOnStartup
    • User Action

cgc_sync__Sync_Type__c 

  • Type: picklist

  • Properties: Create, Filter, Group, Nillable, Restricted picklist, Sort, Update

  • Description: Indicates the type of the sync.

  • Possible values:

    • Background Sync
    • FSOD
    • Initial Sync
    • On Demand
    • Regular Sync

cgcloud_dev__Time_In_Queue__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Queue waiting time of a sync request in seconds. Value is zero if the Queue Sync User feature is disabled.

cgc_sync__Total_Api_Calls__c 

  • Type: double
  • Properties: Create, Filter, Nillable, Sort, Update
  • Description: Total number of all API calls made during the sync.

Associated Objects 

Associated Objects 

This object has the following associated objects. If the API version isn’t specified, the version details are available in the same API versions as this object. Otherwise, they’re available in the specified API version and later.