Query Salesforce Big Objects with SOQL-style async queries and understand the indexing constraints

domain: developer.salesforce.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

In-depth guide

Salesforce Bulk API 2.0 limits — the full failure-mode walkthrough related to developer.salesforce.com, checked against official docs, with linked verified routes.

Steps

  1. Define a Big Object with a custom index composed of multiple fields using the Metadata API or Setup UI
  2. Use the standard Salesforce REST query endpoint but note that only equality and range operators on indexed fields are supported
  3. Submit an async SOQL query via the Async Query endpoint at /services/data/vXX.0/query/ adding Sforce-Query-Options headers for async mode
  4. Poll the query job status and download results once the job completes
  5. Insert Big Object records directly using Apex Database.insertImmediate() which bypasses triggers and does not call standard DML
  6. Plan data archival by writing completed transaction records from standard objects into the Big Object via scheduled Apex

Known gotchas

Related routes

Run a SOQL query with pagination from the Salesforce API
salesforce.com · 4 steps · unrated
Understand and query the CPQ quote and quote line object model via SOQL and REST
Salesforce CPQ · 6 steps · unrated
Paginate large SOQL query results using nextRecordsUrl
developer.salesforce.com · 5 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans