Actions
| Name | Description |
|---|---|
add_contact_to_campaignAdd a contact to a campaign. | Add a contact to a campaign. |
add_file_to_recordUploads a file and attaches it to an existing record. | Uploads a file and attaches it to an existing record. |
add_lead_to_campaignAdds an existing lead to an existing campaign. | Adds an existing lead to an existing campaign. |
create_attachmentCreates a legacy Attachment record. Salesforce recommends using "Add File to Record" for modern apps. | Creates a legacy Attachment record. Salesforce recommends using "Add File to Record" for modern apps. |
create_caseCreates a Case, which represents a customer issue or problem. | Creates a Case, which represents a customer issue or problem. |
create_contactCreates a new contact record. | Creates a new contact record. |
create_leadCreates a new lead. | Creates a new lead. |
create_noteCreates a note and attaches it to a record. | Creates a note and attaches it to a record. |
create_opportunityCreates a new opportunity. | Creates a new opportunity. |
create_recordCreate a record of a given object. | Create a record of a given object. |
create_taskCreates a new task. | Creates a new task. |
delete_opportunityDeletes an opportunity. | Deletes an opportunity. |
delete_recordDeletes an existing record in an object. | Deletes an existing record in an object. |
export_reportExport a Salesforce report as an Excel file. | Export a Salesforce report as an Excel file. |
find_child_recordsFinds child records related to a parent record. | Finds child records related to a parent record. |
find_recordFinds a record by a field value. | Finds a record by a field value. |
find_records_by_queryFinds records in an object using a SOQL WHERE clause. | Finds records in an object using a SOQL WHERE clause. |
get_record_attachmentsGet all attachments (both classic and modern Files) for a record. | Get all attachments (both classic and modern Files) for a record. |
run_queryRun a salesforce query | Run a salesforce query |
run_reportExecute a Salesforce analytics report. | Execute a Salesforce analytics report. |
send_emailSends an email to a Contact or Lead by creating an EmailMessage record. | Sends an email to a Contact or Lead by creating an EmailMessage record. |
update_contactUpdate an existing contact. | Update an existing contact. |
update_leadUpdate an existing lead. | Update an existing lead. |
update_recordUpdates an existing record. | Updates an existing record. |
upsert_by_external_idBatch upsert a record by external id | Batch upsert a record by external id |
upsert_by_external_id_bulkBulk upsert a record by external id | Bulk upsert a record by external id |
custom_api_callMake a custom API call to a specific endpoint | Make a custom API call to a specific endpoint |
Triggers
| Name | Description |
|---|---|
new_case_attachmentFires when a new Attachment or File is added to any Case record. | Fires when a new Attachment or File is added to any Case record. |
new_contactFires when a new Contact record is created in Salesforce. | Fires when a new Contact record is created in Salesforce. |
new_field_history_eventFires when a tracked field is updated on a specified object. | Fires when a tracked field is updated on a specified object. |
new_leadFires when a new Lead record is created in Salesforce. | Fires when a new Lead record is created in Salesforce. |
new_or_updated_recordTriggers when there is new or updated record | Triggers when there is new or updated record |
new_outbound_messageFires when a new outbound message is received from Salesforce. | Fires when a new outbound message is received from Salesforce. |
new_recordTriggers when there is new record | Triggers when there is new record |
new_updated_fileFires when a file (ContentDocument) is created or updated. Does not fire for classic Attachments or Notes. | Fires when a file (ContentDocument) is created or updated. Does not fire for classic Attachments or Notes. |
Quick Start
import { WeavzClient } from '@weavz/sdk'
const weavz = new WeavzClient({ apiKey: 'wvz_...' })
const result = await weavz.actions.execute({
integrationName: 'salesforce',
actionName: 'add_contact_to_campaign',
input: { /* ... */ },
connectionId: 'conn_id',
workspaceId: 'ws_id',
})Related Integrations
Works well with
Frequently Asked Questions
How do I connect Salesforce to my app?
Use Weavz Hosted Connect for OAuth2 authentication. Install the SDK, create a connection through the connect portal or API, then execute actions programmatically.
What actions does Salesforce support?
Salesforce supports 27 actions including Add Contact to Campaign, Add File to Record, Add Lead to Campaign, Create Attachment (Legacy), Create Case, and more.
Can I use Salesforce with AI agents?
Yes. Add Salesforce to an MCP server in TOOLS mode or CODE mode. CODE mode provides 80-98% context reduction with 3 meta-tools for efficient agent access.
What authentication does Salesforce use?
Salesforce uses OAuth2. Weavz handles token management, refresh, and secure credential storage automatically.
How much does the Salesforce integration cost?
The Salesforce integration is included on all Weavz plans including the free tier with 1,000 actions per month. No credit card required.
What triggers does Salesforce support?
Salesforce supports 8 triggers including New Case Attachment, New Contact, New Field History Event, New Lead, New or Updated Record, and more.
Connect Salesforce in 2 minutes
Get 1,000 free actions every month. No credit card required.