Salesforce
Salesforce is a widely used CRM for tracking leads, accounts, opportunities and support cases. With this connector TAO can search your Salesforce data, and create or update records with a person approving each change.
What you can do
Illustrative examples. Ask in your own words.
- "What objects do we have in Salesforce? Is there one for projects?"
- "Show me the open opportunities closing this quarter."
- "List the open cases for Acme."
- "Add a lead for the person who emailed us today."
- "Move the Acme opportunity to Negotiation."
- "Add a follow-up task for next Tuesday."
Before you connect
- A Salesforce account that can use the API. TAO acts as you. Salesforce's own profile, permission sets and sharing rules decide what you can see and change.
- Know whether you use production (your live Salesforce) or a sandbox (a practice copy). The two look alike but hold different data, so choose with care.
- An admin must turn the Salesforce connector on and register the Salesforce app for TAO. The product docs say it is added switched off.
- No password or key is typed into TAO. You sign in on Salesforce's own page.
TAO asks Salesforce for two permissions (scopes): api and refresh_token. The first lets TAO use the Salesforce API as you. The second lets the connection keep working without asking you to sign in each time. TAO does not ask for the broader full scope.
Connect it
Open My Connectors
Go to Settings and open My Connectors. Find the Salesforce card.
Click Connect
Click Connect. A small window opens with a Salesforce environment list.
Choose the environment
Pick
login.salesforce.comfor production or a Developer Edition org. Picktest.salesforce.comfor a sandbox. Then click Connect Salesforce.Sign in and approve
Salesforce opens. Sign in and approve access. You return to TAO and the card shows your connection.
TAO also stores the address of your org (for example https://acme.my.salesforce.com) when you connect. It will not work without it.
Tools
Salesforce has 19 tools: 8 read and 11 write. Every write waits for a person to approve it.
Discover what your org has
Every Salesforce org has its own custom objects, fields and choice lists. These two tools let TAO find out before it reads or writes.
| Tool name | What it does | Read or Write |
|---|---|---|
salesforce_describe_sobjects | Lists the objects in your org and whether you can read, create, update or delete each | Read |
salesforce_describe_sobject_fields | Lists the fields on one object, which are required, which can be set, and the allowed choice values | Read |
Search and read
| Tool name | What it does | Read or Write |
|---|---|---|
salesforce_find_records | Searches one object on a field, operator and value. TAO builds and escapes the query for you | Read |
salesforce_soql_query | Runs a raw SOQL query (Salesforce's query language) | Read |
salesforce_get_record | Fetches one record by its Salesforce ID | Read |
salesforce_list_opportunities | Lists opportunities | Read |
salesforce_list_cases | Lists support cases | Read |
salesforce_list_contacts | Lists contacts | Read |
Create and update common records
| Tool name | What it does | Read or Write |
|---|---|---|
salesforce_create_lead | Creates a lead (an unqualified prospect) | Write, needs approval |
salesforce_create_contact | Creates a contact, usually linked to an account | Write, needs approval |
salesforce_create_account | Creates an account (the company record) | Write, needs approval |
salesforce_create_opportunity | Creates an opportunity (a deal) | Write, needs approval |
salesforce_update_opportunity_stage | Moves an opportunity to a different stage | Write, needs approval |
salesforce_create_case | Creates a support case | Write, needs approval |
salesforce_update_case | Updates a case, for example to close it | Write, needs approval |
salesforce_create_task | Creates a task (a to-do) | Write, needs approval |
Work with any object
| Tool name | What it does | Read or Write |
|---|---|---|
salesforce_create_record | Creates a record on any object, including your custom ones | Write, needs approval |
salesforce_update_record | Changes only the fields you give on any record | Write, needs approval |
salesforce_delete_record | Deletes a record | Write, irreversible, always needs a person |
Total: 19 tools (8 read, 11 write).
Limits and good to know
- Deleting is guarded.
salesforce_delete_recordasks you to confirm the record's name, not its ID. It refuses if two records share that name, and lists both. Deleting a parent also removes its children. Deleting an account takes its contacts, opportunities and cases with it. - There is no undelete tool. Salesforce keeps deleted records in its Recycle Bin for a limited time, but TAO cannot restore them.
- No lead conversion and no batch tools. The product docs say these are not built.
- Query size. Salesforce returns at most 2,000 rows per query. TAO reports when a result is cut short.
- A missing field is not an empty field. Salesforce hides fields you are not allowed to see. TAO tells you which fields came back.
- Two meanings of a 403 error. It can mean no permission, or that your org used up its daily API allowance. TAO tells them apart.
- No automatic retry on writes. If a reply is lost, TAO reports an unknown result and a person must approve again, to avoid a duplicate record.
- My Domain hosts. A My Domain host cannot be picked in the environment list yet. An admin has to add it to the list.
- Not tested live. The product docs say no live Salesforce call was made when the connector was built.