Package overview
Overview
Create or update CRM activity records from a webhook. Salesforce is included; other CRMs connect through an adapter workflow.
Get started
- Install Activity Sync.
- Set the
salesforceenvironment variable to your Salesforce connection, such as{{ $connections.salesforce }}. - Choose a Salesforce Task field to store the activity's session ID. Mark it Unique to prevent duplicate records.
- Send an activity to the installed
activity-syncwebhook. - Open the Activity Sync dashboard to check the result.
Send an activity
{
"session_id": "call-123",
"session_id_field": "Five9__Five9SessionId__c",
"field": {
"Subject": "Customer follow-up",
"Description": "Call notes"
}
}
Use the same session_id to update an existing activity. Set session_id_field to the Task field you chose during setup. Add any CRM fields you want to save inside field, including WhoId or WhatId when linking Salesforce records.
The optional provider defaults to salesforce.
Check the result
The webhook acknowledges receipt. The dashboard shows the write outcome:
- Success: the record was saved.
- Recovered: the record was saved after an automatic recovery attempt.
- Error: the write failed or the adapter returned an invalid result. Check the explanation before resending.
Salesforce settings
In activity_sync_settings, open the salesforce record. The saveTaskWithoutInvalidWhoIdOrWhatId setting allows saving when neither supplied relationship is valid. It is enabled by default. Turn it off to reject writes when none of the supplied relationships is valid.
Use another CRM
Select your adapter under Create or Update Activity in Custom CRM, then include its provider name in webhook payloads, such as "provider": "hubspot". Follow the adapter's instructions for connections and field names.
To build an adapter, copy activity-sync-custom-crm-adapter-template, add your CRM's lookup, create, and update operations, then select that workflow in the extension. The template includes the result format Activity Sync expects.
If you only use another CRM, skip the Salesforce setup and disable the daily activity-sync-refresh-salesforce-task-schema-daily trigger.
Customize
- Enrich Activity Fields: add or override fields before saving.
- Handle Failed Activity: send failed activities for review or raise an alert.