Connection Test/Keep-Alive scheduled job
S4S provides an optional job to check Salesforce connections.
As of Summer '26, Salesforce enforces an idle TTL of 30 days for OAuth2 refresh tokens. If a token is not used for this time, it will expire.
Configure connections
Check the value of the S4S.ConnectionsKeepAlive setting in App_Config/Modules/S4S/S4S.config. Ensure that the name of every relevant connection string is included.
<sitecore>
<settings>
<!-- Comma-separated list of connection string names for KeepAlive scheduled job. -->
<setting name="S4S.ConnectionsKeepAlive" value="S4SConnString" />
</settings>
</sitecore>Create job command
In the applicable database, insert a Command under /sitecore/System/Tasks/Commands.
Type:
FuseIT.S4S.WebToSalesforce.Connection.KeepAliveJob, FuseIT.S4S.WebToSalesforceMethod:
Execute
Create schedule
Insert a Schedule item under /sitecore/System/Tasks/Schedules, using the Command created above. Set the schedule as desired; to keep a connection available it only needs to run once every 29 days.
Log output
The job outputs INFO level messages when successful. If a connection fails there will be an ERROR level message with related exception details. Normal S4S log output will also provide more information.
ManagedPoolThread #6 09:32:12 INFO FuseIT.S4S.WebToSalesforce.Connection.KeepAliveJob - Found 1 configured Salesforce connection names for keep-alive run.
ManagedPoolThread #6 09:32:16 INFO FuseIT.S4S.WebToSalesforce.Connection.KeepAliveJob - Connection successful: S4SConnString. Org Id: 00D5g00000XxxxXXXX.