# Salesforce connector

> Connect Salesforce to Windsor.ai: 377 fields in 13 tables, and how to query them or send them to a destination.

The Salesforce connector pulls your Salesforce data into Windsor.ai. You can query it with one API, send it to a destination, or ask about it in Claude or ChatGPT.

## Connect Salesforce

1. Open [Salesforce in Windsor.ai](https://onboard.windsor.ai/app/salesforce) and sign in.
2. Authorize Salesforce, or enter the credentials that the screen asks for.
3. Select the accounts to include.

## Available data

377 fields in 13 tables.

| Table | Fields | Examples |
| --- | --- | --- |
| lead | 51 | Lead Email, Lead Address, Lead Annual Revenue, Lead City, Lead Company |
| account | 46 | Account Source, Account Annual Revenue, Account Billing Address, Account Billing City, Account Billing Country |
| contact | 42 | Contact Account ID, Contact Assistants Name, Contact Assitants Phone Number, Contact Birthdate, Contact Created By |
| task | 39 | Task Account ID, Task Due Date Only, Task Call Result, Task Call Duration, Task Call Object Identifier |
| campaign | 38 | Campaign Actual Cost in Campaign, Campaign Value Opportunities in Campaign, Campaign Value Won Opportunities in Campaign, Campaign Budgeted Cost in Campaign, Campaign Record Type ID |
| opportunity | 38 | Opportunity Account ID, Opportunity Amount, Opportunity Campaign ID, Opportunity Close Date, Opportunity Contact ID |
| servicecontract | 30 | Account Id (ServiceContract), Activation Date (ServiceContract), Approval Status (ServiceContract), Contact Id (ServiceContract), Contract Number (ServiceContract) |
| campaignmember | 24 | Campaign Member Campaign ID, Campaign Member CompanyOrAccount, Campaign Member ContactId, Campaign Member Country, Campaign Member Description |
| Other | 19 | Data fetched at, Data Source, Last Modified Date, Day of month, Month |
| opportunitylineitem | 17 | Opportunity Line Item Created By ID, Opportunity Line Item Created Date, Opportunity Line Item Description, Opportunity Line Item ID, Opportunity Line Item Deleted |
| opportunityhistory | 14 | Amount (OpportunityHistory), CloseDate (OpportunityHistory), CreatedById (OpportunityHistory), CreatedDate (OpportunityHistory), ExpectedRevenue (OpportunityHistory) |
| opportunitycontactrole | 11 | Contact Id (OpportunityContactRole), Created By Id (OpportunityContactRole), Created Date (OpportunityContactRole), Id (OpportunityContactRole), Is Deleted (OpportunityContactRole) |
| leadhistory | 8 | CreatedById (LeadHistory), CreatedDate (LeadHistory), Field (LeadHistory), Id (LeadHistory), IsDeleted (LeadHistory) |

The full list, with the type and description of each field, is at `https://connectors.windsor.ai/salesforce/fields`.

## Query the data

Request fields by their IDs. For example:

```url
https://connectors.windsor.ai/salesforce?api_key=YOUR_API_KEY&fields=date,email,lead_address&date_preset=last_7d
```

## Write actions

Salesforce supports 3 write actions, such as Update Object, Create Object, Delete Object. An AI assistant connected through Windsor MCP can run them after you confirm. See [Write actions](https://windsor.ai/documentation/mcp/write-actions.md) for the full list.

## Next steps

- [Send the data to a destination](https://windsor.ai/documentation/destinations/index.md), such as Looker Studio, Google Sheets or BigQuery.
- [Connect Windsor.ai to Claude or ChatGPT](https://windsor.ai/documentation/mcp/index.md) and ask about your Salesforce data.
- [Fix a connection problem](https://windsor.ai/documentation/troubleshooting/index.md).
