What you can ask
“How many leads did we create this quarter vs last quarter?”
“Find the contact with email jane@acme.com and show her account, title, and open opportunities.”
“Which opportunities close this month with no activity in the last 14 days?”
“Create a summary report of open opportunities grouped by stage, in the Sales Ops folder.”
“Update the Acme renewal opportunity to Negotiation and set the close date to Aug 15.” (asks for approval first)
“Every Monday morning, message me the pipeline changes from last week.” (scheduled task)
Connecting
- Open Connections in the dashboard and click Salesforce → Connect.
- Sign in as the Salesforce user Expertise should act as, and approve the request.
- Ask Expertise something about your CRM to confirm it’s live.
login.salesforce.com. To connect a sandbox instead, or an org that only
allows sign-in through its own My Domain URL, click the options button next to
Connect on the Salesforce card. Choose Sandbox (signs in at
test.salesforce.com), or open Use a custom login domain and enter your
My Domain (it ends in .my.salesforce.com; find it in Salesforce under
Setup → My Domain). Reconnecting later uses the same choice.
Each Expertise user has one Salesforce connection at a time. To switch orgs,
for example from a sandbox you were testing in to production, disconnect and
connect again.
The connection stores an encrypted refresh token, so access tokens renew on
their own and you won’t be asked to sign in again. Disconnect any time from
the Connections page, or revoke the app in Salesforce under Setup →
Connected Apps OAuth Usage.
Choosing which user to connect
Expertise acts as the Salesforce user who signs in, so that choice decides what it can see and do. Most teams use one of two setups:
You can start with your own login and move to an integration user later:
disconnect, then connect again signing in as the new user.
Controlling what Expertise can access
Expertise requests theapi, refresh_token, and id OAuth scopes.
api is the scope Salesforce requires for any REST API access, and Salesforce
has no narrower or read-only version of it. Access is narrowed in two places
instead:
- In Salesforce, through the connected user’s permissions. Object permissions, field-level security, sharing rules, and profile settings apply to every request Expertise makes. A field the user can’t read returns an error, exactly as if it didn’t exist, and an object the user can’t edit can’t be changed through Expertise either. Permission changes take effect on the next request; there’s no need to reconnect.
- In Expertise, through approval rules. Under Connections → Salesforce → Manage, each action can be set to Allow, Ask, or Deny. See Approvals.
Setting up an integration user
An integration user can use Salesforce’s free Salesforce Integration license, which Enterprise, Unlimited, and Performance editions include. These users can’t log in to the Salesforce website, and they can still complete the Expertise sign-in. A Salesforce admin sets one up once:-
Install the Expertise app in your org. Salesforce blocks non-admin users
from authorizing apps an admin hasn’t installed. Ours is listed under its
earlier name, Chatsimple. Sign in to Salesforce as an admin and open this
link, with your own My Domain (Setup → My Domain) in place of
yourcompany:A sandbox is a separate org, so install the app there too. Its domain looks likeyourcompany--uat.sandbox.my.salesforce.com. Installing the app doesn’t connect anyone. Don’t connect Expertise as an admin to set this up: that would give the connection the admin’s access. If the link doesn’t open, contact Expertise support. - Create the user. In Setup → Users → New User, choose the Salesforce Integration user license and the Minimum Access - API Only Integrations profile. Use an email address you can receive mail at, so you can set the user’s password.
- Assign the Salesforce API Integration permission set license to that user.
-
Create a permission set for Expertise and assign it to the user. Grant:
- Object permissions for each object Expertise needs: Read for reporting and lookups, plus Edit or Create only where you want Expertise to change records.
- Field access on the fields Expertise needs. Fields you leave unchecked stay invisible to it.
- Record access. An integration user owns no records, so in an org with private sharing its queries come back empty. Add View All on those objects, or share the records it needs with a sharing rule.
- Connect. In Expertise, click Salesforce → Connect and sign in as the integration user. Use a private browser window, or sign out of Salesforce first: if your browser is already signed in to the org, Salesforce reuses that session and connects your own account instead. The connection panel shows the connected username, so you can check it.
Limiting who can connect
To keep people from connecting their personal Salesforce accounts, change the app’s policies after installing it and before you connect:- In Setup → Manage Connected Apps → Chatsimple → Edit Policies, set Permitted Users to Admin approved users are pre-authorized.
- On the app’s page, under Manage Permission Sets, add the integration user’s permission set.
Salesforce permission behaviors worth knowing
- Required and system fields can’t be hidden. Field-level security doesn’t apply to fields like a record’s name, owner, and created date, or to an opportunity’s stage, close date, and won/closed flags. Anyone with Read on the object sees them.
- History objects can carry hidden values. Salesforce history records
store values from the parent record at each change. For example, each row
of an opportunity’s stage history (
OpportunityHistory) includes the amount and expected revenue at that stage, even for a user who can’t read the opportunity’s Amount field. If a value must stay out of Expertise, check the related history objects as well as the field itself. - Reports follow report-folder sharing. Expertise can list and run the reports the connected user can see, and create reports only in folders that user can save to.
- API usage counts toward your org’s limits. Expertise checks the remaining API calls before larger jobs, and you can ask it for current usage at any time.
Reading: records, queries, and metadata
Read tools never change your org, so by default they run without approval. You can still set any of them to Ask or Deny in the connection’s approval settings.
Custom objects work everywhere: anywhere a tool takes an object name, API
names like
Custom_Object__c are fine, and Expertise will describe_object
first when it isn’t sure about your schema.
Reports
Expertise speaks the full Salesforce Reports & Dashboards REST API:
Report creation is typed and validated: Expertise passes a name, report type,
detail columns, and an optional
group_by, and the connector builds the
Salesforce report metadata, validating the fields against your live report
type before posting. It also absorbs two classic Salesforce sharp edges for
you: report names longer than 40 characters are rejected up front, and a
grouped field is automatically kept out of the detail-column list (Salesforce
errors when a grouping field is also a selected column).
Writing: always behind an approval
These tools change data in your org, and every call pauses for an approval card in chat showing the exact object, record, and field values before anything is sent:create_record(POST /sobjects/{object})update_record(PATCH /sobjects/{object}/{id})upsert_record(PATCHby external ID); setcreate_if_missing: falsefor update-only behavior that will never create a recorddelete_record(DELETE /sobjects/{object}/{id})bulk_upsert_records(loads a CSV in batches of up to 200; a dry run comes first and changes nothing)create_reportandupdate_report, as above
- Limit preflight. Before proposing create-style work, Expertise checks
get_org_limits; if your API or data storage limits are exhausted it tells you instead of queueing a doomed approval. - Validation-first writes. Object and field names are checked against
describe_objectmetadata before the approval card is shown, so what you approve is what will succeed.
Troubleshooting
Expertise says Salesforce isn't connected, but the tile shows connected
Expertise says Salesforce isn't connected, but the tile shows connected
Occasionally the tool list takes a moment to surface in a new
conversation. Ask again in the same chat (the connector retries), or
start a fresh conversation.
A query returns fewer records than you see in Salesforce
A query returns fewer records than you see in Salesforce
Expertise queries as the connected user. Sharing rules and field-level
security apply, so a personal connection sees exactly what that user sees
in the Salesforce UI, no more. An integration user that owns no records
needs View All or a sharing rule to see other users’ records.
Writes fail with INVALID_FIELD or similar
Writes fail with INVALID_FIELD or similar
Usually a field API name mismatch on a custom object. Ask Expertise to
“describe the object first”. It will pull live metadata and rebuild the
request with correct API names.
Report creation is rejected
Report creation is rejected
Salesforce enforces a 40-character report name limit and rejects grouped
fields in the column list. Expertise handles both automatically, but if a
folder is specified it must be a real report folder ID. Ask it to list
report folders and pick one.
Sandbox sign-in fails
Sandbox sign-in fails
Click the options button next to Connect and choose Sandbox, so the sign-in goes to
test.salesforce.com. If your org has turned off login through
test.salesforce.com and only allows its My Domain login URL, open
Use a custom login domain and enter that domain instead, for example
yourcompany--uat.sandbox.my.salesforce.com.Expertise connected as the wrong Salesforce user
Expertise connected as the wrong Salesforce user
Salesforce reuses any session already open in your browser. Disconnect,
sign out of Salesforce (or open a private window), and connect again
signing in as the intended user. The connection panel shows which
username is connected.
The integration user can't approve the app
The integration user can't approve the app
An error such as
OAUTH_APPROVAL_ERROR_GENERIC usually means the
Expertise app isn’t installed in the org you’re connecting. A Salesforce
admin can install it with the link in
Setting up an integration user, without
connecting their own account. If the app is installed and you see
OAUTH_APP_ACCESS_DENIED, the app’s Permitted Users policy doesn’t
include that user.Salesforce says the user can't access the UI
Salesforce says the user can't access the UI
“Access Restricted for API Only Users” appears when an integration user
signs in to the Salesforce website directly, for example while setting its
password. That is expected. The same user can still connect from the
Expertise Connections page.