Restore admin-authorized Salesforce connection after token expiration#

In some cases, the Salesforce refresh token used by a Revenue Grid service account may expire. When this happens, Context Sync is interrupted for all affected users, and the Salesforce connection must be manually restored by an administrator.

This guide explains how to detect the issue and restore the connection.

How to know the token has expired#

When a refresh token expires, the CRM section in the affected user profile’s Connectivity tab will show the status: Disconnected.

../../../../_images/disconnected.png

Additionally, in the Administration settings, for the affected profile, you may observe the following:

  • On the Users tab, the Effective synchronization status for impacted users changes to Disabled.

    ../../../../_images/DisabledEffectiveSyncStatus.webp
  • On the Statistics tab, you may see an error message for these users such as:

    invalid_grant: expired access/refresh token
    

This indicates that the access token is no longer valid and must be refreshed.

Steps to restore the connection#

Before you begin, ensure you have:

To obtain a new token and restore the connection:

  1. Open Revenue Grid administration settings.

  2. Go to Profiles.

    ../../../../_images/ProfilesTab5.webp
  3. Open the profile that uses the expired service account and go to the Connectivity tab.

    ../../../../_images/ConnectivitySubtab3.webp
  4. In the CRM section, click Refresh.

    ../../../../_images/sf-refresh.png
  5. Sign in using the dedicated service account credentials.

Upon successful login, a new refresh token will be issued, and the CRM status will update to Connected.