Magidoc

WorkspaceHubSpotSync
Object

Per-workspace HubSpot CRM sync state. Initialized by setWorkspaceCrmSync when sync is enabled; ongoing timestamps and status are updated by the HubSpot CRM sync worker in apps/salesforce.

Fields

#

enabled

Non-null

userId

User whose HubSpot OAuth tokens the sync worker uses.

lastFullSyncAt

Timestamp of the most recent completed full inbound sync.

lastCompaniesSyncAt

Timestamp of the most recent completed companies sync.

lastContactsSyncAt

Timestamp of the most recent completed contacts sync.

lastDealsSyncAt

Timestamp of the most recent completed deals sync.

backfillWindowDays

Number of days requested for the most recent manual CRM backfill.

lastBackfillRequestedAt

Timestamp when the most recent CRM backfill was requested.

lastBackfillStartedAt

Timestamp when the most recent CRM backfill started.

lastBackfillCompletedAt

Timestamp when the most recent CRM backfill completed.

lastBackfillStatus

Status of the most recent manual CRM backfill request.

lastBackfillError

Last CRM backfill error message, when the worker failed.

status

Connection state: connected, disabled, or reconnectRequired.

lastError

Last connection or sync error safe for admin display.

Usages

#

References

#