Skip to content
Salesforce CRM Query logo

Salesforce CRM Query

List objects, describe schema, run SOQL queries

SKILL.md

Full skill instructions

Salesforce CRM Query

When querying Salesforce data:

  • Use salesforce_list_objects (tool name may have a suffix if multiple Salesforce servers exist) to discover standard and custom objects in the org.
  • Use salesforce_describe_object to get fields and relationships for an object before querying.
  • Use salesforce_query to run SOQL queries (read-only); build queries from the described schema.
  • Follow a discovery-first workflow: list objects -> describe object -> query. All tools are read-only.
  • Summarize records clearly; cite object and key fields; avoid dumping raw result sets unless asked.

Step-by-step instructions

  1. When the user asks about "accounts", "contacts", or an object name: if unsure of the exact API name, call salesforce_list_objects to find it.
  2. Before running a query: call salesforce_describe_object for that object to get field names and types so the SOQL query uses valid fields.
  3. Call salesforce_query with a SOQL string (e.g. SELECT Id, Name FROM Account LIMIT 10); use only fields from the describe result.
  4. Summarize the returned records (count, key fields); for large result sets, summarize and offer to narrow.
  5. Salesforce uses instance_url from the token; the tools use the correct instance automatically.

Examples of inputs and outputs

  • Input: "List recent accounts."
    Output: Short list of Account records (Id, Name, and other requested fields) from salesforce_query with a SOQL like SELECT Id, Name FROM Account ORDER BY CreatedDate DESC LIMIT 10.

  • Input: "What fields does the Contact object have?"
    Output: List of field names and types from salesforce_describe_object for Contact; summarize key fields (e.g. Name, Email, AccountId).

Common edge cases

  • Object not found: Say "Object [name] not found" and suggest listing objects or checking the API name (e.g. custom objects have __c).
  • Invalid SOQL: If the query fails, check field names against salesforce_describe_object and retry; report the error to the user.
  • Large result set: SOQL has limits; summarize the first page and mention limits; do not assume all records were returned.
  • API/​OAuth error: Report that Salesforce returned an error and suggest reconnecting or retrying; ensure instance_url is used (handled by the integration).

Tool usage for specific purposes

  • salesforce_list_objects: Use when the user asks about "objects" or when you need to resolve an object API name.
  • salesforce_describe_object: Use before building a SOQL query to get valid field names and types.
  • salesforce_query: Use to run read-only SOQL; always use fields from describe; include LIMIT and ORDER BY as appropriate.

More Sales & marketing skills

revops logo
Sales & marketing

revops

Design and optimize systems connecting marketing, sales, and customer success into a unified revenue engine.

53.3K 104.9K
View
lead-magnets logo
Sales & marketing

lead-magnets

Strategic planning and optimization for email capture offers and gated content.

53.3K 103.4K
View
directory-submissions logo
Sales & marketing

directory-submissions

Directory submissions: the foundation layer of distribution that passes backlinks and discovery surface area into your marketing pages.

53.3K 76.3K
View
gsap-timeline logo
Sales & marketing

gsap-timeline

Sequence and choreograph multi-step animations with precise timing control and nested timelines.

15.9K 58.4K
View
launch-strategy logo
Sales & marketing

launch-strategy

Structured framework for planning product launches, feature announcements, and go-to-market strategies.

53.3K 56.8K
View
gws-drive-upload logo
Sales & marketing

gws-drive-upload

Upload files to Google Drive with automatic MIME type detection and metadata.

31.2K 47.2K
View
ci-cd-and-automation logo
Sales & marketing

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

101.4K 43.2K
View
persona-team-lead logo
Sales & marketing

persona-team-lead

Team leadership persona with standup coordination, meeting prep, task delegation, and team communication.

31.2K 29.3K
View
recipe-find-large-files logo
Sales & marketing

recipe-find-large-files

Identify large Google Drive files consuming storage quota.

31.2K 29.2K
View

Sales & marketing AI tools

KreadoAI logo
Sales & marketing

KreadoAI

Revolutionize Video Creation with AI-Generated Avatars and Voices

Paid
View
Followr logo
Sales & marketing

Followr

Social media on autopilot

Paid
View
Logodiffusion logo
Sales & marketing

Logodiffusion

Design custom logos instantly with AI.

Paid
View
I
Sales & marketing

Ideogram

Text-heavy marketing and design images

Freemium
View
Prompt Silo logo
Sales & marketing

Prompt Silo

Boost Your SEO with Content and SEO Silos

Free
View
Marketing Blocks logo
Sales & marketing

Marketing Blocks

Revolutionize Your Marketing with AI-Powered MarketingBlocks!

Paid
View
Scrip AI logo
Sales & marketing

Scrip AI

10X faster & free AI content creation for 100+ use cases

Free
View
T
Sales & marketing

Tribescaler

Tribescaler | Make Your Tweets Go Viral

Paid
View