Save the last synchronization date and time to the entity.
This information can be a visual info for the user (when filtering by TIMESTAMP or LAST_AUTO_INCREMENT), or you can use it for synchronization by a DateTime
field like SystemId
.
Enum "Provider ID RWU"
- Specifies the enum ID of RESTwithUS provider.Enum "Entity ID RWU"
- Specifies the enum ID of RESTwithUS entity.Date
- Specifies the date of last synchronization. Set to 0D
to get the last synchronization timestamp.Time
- Specifies the time of last synchronization. Set to 0T
to get the last synchronization timestamp.Text
- Specifies the description of RESTwithUS provider.Text
- Specifies the description of RESTwithUS entity.Date
- Specifies the date of last synchronization. Set to 0D
to get the last synchronization timestamp.Time
- Specifies the time of last synchronization. Set to 0T
to get the last synchronization timestamp.DateTime
Date and time of the last synchronization.
//Get the last synchronization date and time on Customer entity
SyncDateTime := APIScriptRWU.SYNC_DATETIME(ProviderID::TestProvider,EntityID::TestProvider_Customer,0D,0T); //By enum ID
SyncDateTime := APIScriptRWU.SYNC_DATETIME('Test Provider','Customer',0D,0T); //By description
//Set the last synchronization time on Customer entity to 27.11.2021 11:59
APIScriptRWU.SYNC_DATETIME(ProviderID::TestProvider,EntityID::TestProvider_Customer,11272021D,1159T); //By enum ID
APIScriptRWU.SYNC_DATETIME('Test Provider','Customer',11272021D,1159T); //By description