HomeWiki
HomeWiki
  1. Utils
  • Back to home
  • 2. Connectivity
  • Introduction
  • Custom Script
  • Playground
  • Database Explorer
  • Log Stream
  • Direct Communication
  • Softone
    • Getting Started
  • Datapump
    • Getting Started
    • Crons
    • Legacy Windows Support
    • SDK
      • DB
        • _executeQuery
        • _executeStoreProcedure
        • _executeInsertQuery
        • _executeInsertQueriesInTransaction
      • Import
        • _productsImport
        • _categoriesImport
        • _brandsImport
        • _attributesImport
        • _attributeSetsImport
        • _unitsImport
        • _quantityImport
        • _customersImport
        • _contactsImport
        • _callsImport
        • _eventsImport
        • _tasksImport
        • _ordersImport
        • _usersImport
        • _customerSourceTagsImport
        • _productSourceTagsImport
      • Log
        • _logDebug
        • _logInfo
        • _logWarn
        • _logError
      • Web Requests
        • _httpGetJson
        • _httpPostJson
        • _httpPutJson
        • _httpDeleteJson
        • _httpPatchJson
      • Variables
        • _saveVariable
        • _getVariable
        • _deleteVariable
      • Blob
        • _blobConnect
        • _blobExists
        • _blobGet
        • _blobFind
      • Utils
        • _encodeBase64
        • _sleep
        • _getLastSyncDate
        • _updateLastSyncDate
        • _resetLastSyncDate
  1. Utils

_resetLastSyncDate

Documentation: _resetLastSyncDate Function#

The _resetLastSyncDate function is designed to reset the last synchronization timestamp for a specified job. This operation effectively removes the existing timestamp, which can be useful for re-initializing the synchronization tracking for a job.

Function Signature:#

Parameters:#

jobname:
Description: The name of the job for which the last synchronization date is to be reset. This parameter identifies the specific job whose synchronization timestamp needs to be cleared.
Type: string
Example:

Return Value:#

Returns:
The function does not return a value. It performs an update operation on the internal system state.

Function Workflow:#

1.
Receive Job Name:
The function accepts the job name as an input parameter.
2.
Reset Synchronization Date:
The function clears or resets the synchronization timestamp associated with the specified job. This typically involves setting the timestamp to a default value or removing it from the system.
3.
Complete Operation:
The function completes the reset operation without returning a value, ensuring that the job's last synchronization date has been cleared.

Example Usage:#

Important Considerations:#

Job Name Accuracy:
Ensure that the jobname parameter accurately matches the job's identifier in the system to ensure the correct synchronization date is reset.
System Handling:
The function assumes that the system or database where synchronization dates are managed handles the reset operation correctly. Ensure that the system's implementation supports clearing timestamps as expected.
By using _resetLastSyncDate, you can clear the last synchronization timestamp for a job, which is useful for resetting synchronization tracking and starting fresh with new synchronization operations.
Previous
_updateLastSyncDate
Built with