Docs
Sign in

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.

Screenshot to add: The Connect Salesforce window asking for the Salesforce environment.

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

  1. Open My Connectors

    Go to Settings and open My Connectors. Find the Salesforce card.

  2. Click Connect

    Click Connect. A small window opens with a Salesforce environment list.

  3. Choose the environment

    Pick login.salesforce.com for production or a Developer Edition org. Pick test.salesforce.com for a sandbox. Then click Connect Salesforce.

  4. 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 nameWhat it doesRead or Write
salesforce_describe_sobjectsLists the objects in your org and whether you can read, create, update or delete eachRead
salesforce_describe_sobject_fieldsLists the fields on one object, which are required, which can be set, and the allowed choice valuesRead

Search and read

Tool nameWhat it doesRead or Write
salesforce_find_recordsSearches one object on a field, operator and value. TAO builds and escapes the query for youRead
salesforce_soql_queryRuns a raw SOQL query (Salesforce's query language)Read
salesforce_get_recordFetches one record by its Salesforce IDRead
salesforce_list_opportunitiesLists opportunitiesRead
salesforce_list_casesLists support casesRead
salesforce_list_contactsLists contactsRead

Create and update common records

Tool nameWhat it doesRead or Write
salesforce_create_leadCreates a lead (an unqualified prospect)Write, needs approval
salesforce_create_contactCreates a contact, usually linked to an accountWrite, needs approval
salesforce_create_accountCreates an account (the company record)Write, needs approval
salesforce_create_opportunityCreates an opportunity (a deal)Write, needs approval
salesforce_update_opportunity_stageMoves an opportunity to a different stageWrite, needs approval
salesforce_create_caseCreates a support caseWrite, needs approval
salesforce_update_caseUpdates a case, for example to close itWrite, needs approval
salesforce_create_taskCreates a task (a to-do)Write, needs approval

Work with any object

Tool nameWhat it doesRead or Write
salesforce_create_recordCreates a record on any object, including your custom onesWrite, needs approval
salesforce_update_recordChanges only the fields you give on any recordWrite, needs approval
salesforce_delete_recordDeletes a recordWrite, irreversible, always needs a person

Total: 19 tools (8 read, 11 write).

Limits and good to know

  • Deleting is guarded. salesforce_delete_record asks 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.