Before Sync Trigger

Pulsar 15.0+ supports running custom Pulsar Settings Language before the start of a sync. This can be useful for recording the start of sync time, counting records, or alerting the user to information before the sync starts. NOTE:  This trigger is tied to sync, and any data changes during this setting execution will be pushed to the Salesforce server, even if the user is forced offline permanently via settings.

Here is a trivial example that displays the some local sync counts before the sync starts:

Name:  Before Sync Trigger 
Key:     pulsar.sync.beforeSyncTrigger
Value:  Pulsar Settings Language

DEFAULT{ Action=SetVar; VarName=LastCreatedCount; VarValue=@@LocalCreatedCount; | Action=SetVar; VarName=LocalDeletedCount; VarValue=@@LocalDeletedCount; | Action=SetVar; VarName=LocalUpdatedCount; VarValue=@@LocalUpdatedCount; | Action=SetVar; VarName=LocalUpdatedUniqueCount; VarValue=@@LocalUpdatedUniqueCount; | Action=Alert; Message=Pre sync stats: Created=%%LocalCreatedCount%% Deleted=%%LocalDeletedCount%% Updated=%%LocalUpdatedCount%% UpdatedUnique=%%LocalUpdatedUniqueCount%% ; }