
Apex Cursors: Process Millions of Records in Chunks Without Batch Apex
Use Database.getCursor and PaginationCursor to walk very large SOQL results from Queueable jobs and LWC pages, with limits, chaining, tests and a Node model.
Library
86 guides across 5 topics. Filter by topic or level, sort, or press / to search every word.

Use Database.getCursor and PaginationCursor to walk very large SOQL results from Queueable jobs and LWC pages, with limits, chaining, tests and a Node model.

Write JavaScript expressions directly in LWC templates and embed third-party web components with lwc:external, with a template linter, Jest tests and pitfalls.

Speed up Apex and LWC with Platform Cache: org and session partitions, CacheBuilder, TTL choices, fallbacks that never break a request, and a tested model.

Use the new Web Console, trace flags, debug levels and the CLI to read Apex logs, spot queries in loops and limit pressure, with a tested log analyzer.

API 68.0, heap limits, CLI token changes, SOAP login, Web Console, LWC expressions and Agent Script updates, plus a tested scanner that finds risky code.

Agents retry, users repeat themselves and tools time out. Build idempotent Agentforce actions with deterministic keys, a ledger and tests so a refund happens once.

Sync batches where some records fail: per-record status, external IDs, SaveResult mapping, backoff, dead-lettering and retry-only-failures in Apex and Node.

Handle the timeout where the other side actually succeeded: idempotency keys, external IDs, a request ledger, retry classification and tests in Apex and Node.

Handle Apex errors the right way: try/catch/finally, custom exceptions, partial DML results, savepoints and a platform-event logger, with full tests.

Build approvals the Salesforce way: approval processes, submitting and deciding in Apex, and Flow Orchestrator stages for multi-team workflows, with tests.

Choose between custom metadata, custom settings and custom labels, deploy configuration, read it in Apex and LWC, and test code that depends on it.

Understand Salesforce Data Cloud end to end: ingest data streams, map to the data model, resolve identities, build insights and segments, with a runnable identity model.

Load data safely into Salesforce: clean and validate CSVs, upsert with external ids, bulk load, export, and stop duplicates with rules and Apex.

Build Apex queries at runtime safely with bind maps, allow-lists and Schema describe, add SOSL text search, and test it all with a flexible search service.

Choose and build screen, scheduled and autolaunched flows, call a flow from Apex, and check flow metadata for loops, fault paths and hard-coded ids.

Build Lightning web component forms with lightning-record-edit-form, the UI API adapters, custom validation and Jest tests, with the setup each approach needs.

Unit test Lightning web components with Jest: setup, mocking Apex and wire adapters, testing events and async rendering, and running tests in CI.

Design Prompt Builder templates with merge fields and grounding, call them from Apex through a testable wrapper, and check prompts and answers with a lint kit.

Build reports and dashboards that answer real questions: report types, groupings, filters, formulas, dashboard components and the Reports API in Apex.

Design a Salesforce data model: objects, fields, lookup vs master-detail, many-to-many junction objects and roll-ups, deployed as metadata and proven by tests.

Set up Salesforce DX: project structure, scratch org definitions, a one-command setup script, unlocked packages with dependencies and a CI pipeline with checks.

Learn SOQL relationship queries, subqueries, semi and anti-joins, polymorphic fields and aggregates with a tested Apex pipeline report, setup steps and limits.

Compare Lightning Web Components, Multi-Framework UIBundles, Microfrontends and external apps with a scoring tool, a setup checklist and a tested decision model.

Build a three-component LWC screen using @api, custom events, Lightning Message Service, wired Apex, updateRecord and refreshApex, with tests.

Query and mutate Salesforce data from React with the Data SDK through a testable data layer, define UIBundle metadata, deploy and grant access.

A staged learning path from data model to Agentforce, with a starter project, a progress tracker script and a practice project at every stage.

How Salesforce Microfrontends work: a host LWC, lightning-ui-embedding, a React guest app, events, security checks and tests, with setup steps.

What Multi-Framework is, which frameworks and orgs are supported, the UIBundle model, the GA timeline and a hands-on getting-started path with checks and CI.

Compare the Conversation Client Web SDK, messaging for web and the Agent API, then build a tested React chat panel with consent, limits and error handling.

Connect Slack to Salesforce with an auth provider and Named Credential, build tested Apex actions for channels and messages, and deploy the agent to Slack.

Advanced React: avoid wasted renders, split context, code split, add error boundaries, use transitions and React 19 actions, with a tested example.

Beginner React tutorial: set up Vite, write components, pass props, manage state, handle events and lists, and build a tested account list app.

Learn React hooks with a tested example: effects with cleanup, refs, memoization, a reusable useFetch hook, and how to debug loops and stale values.

Add TypeScript to React components and hooks, validate API data at runtime, and test behaviour with Vitest and Testing Library, including async states.

What MCP means for Salesforce, how hosted servers expose governed tools, and how to design safe tools: an Apex tool, a client script and an injection guard.

Set up an External Client App, get a token, create Agent API sessions and exchange messages through a tested Node backend proxy.

Learn Agent Script, Agentforce's language for mixing LLM reasoning with deterministic logic, with annotated examples and a runnable model of its flow of control.

Build reliable agent actions: bulk-safe invocable Apex with clear descriptions, an idempotent write action, a Flow action with a fault path, and tests.

Where an Agentforce agent can live and how to choose: a tested channel selector, a launch-readiness validator and a rollout checklist you can run.

Build your first Agentforce service agent: setup, agent user, subagents, Apex actions, preview and tests, with an order status and returns scenario.

Load large data sets with Bulk API 2.0: job lifecycle, CSV chunking, polling, failed-row retry and automation bypass, with tested Node code.

Export big data sets with Bulk API 2.0 query jobs, page results with locators, run incremental syncs with a high-water mark, and tune loads.

Cut round trips and keep related changes together: the four REST composite resources with JSON examples, a tested Node helper and limits.

Submit many independent graphs of dependent records in one call: graph rules, sizing, a tested Node builder, per-graph retries and rollback behaviour.

A practical tour of Salesforce's APIs with runnable REST, GraphQL, Composite and Bulk examples and a decision guide for picking the right one.

Expose your own REST endpoint with @RestResource: idempotent upserts, validation, versioned URLs, security, partner setup and full tests.

Request-reply, fire-and-forget, batch sync, remote call-in and virtualization explained with working Apex and Node code for one order scenario.

Turn an OpenAPI spec into Flow actions with External Services, and show live external data with Salesforce Connect and a custom Apex adapter.

Design integrations that survive failures: external IDs, stale-message checks, dead-letter records, retry scheduling and reconciliation, with full tested code.

When middleware pays off and what it does for Salesforce: a working Node example of transform, retry, dead-letter and write-back, plus API-led layers.

Pick the right OAuth flow, set up an External Client App, and build a tested token client for client credentials and JWT bearer.

Call external APIs from Apex safely: credentials model, a reusable client, a tested retry policy, Queueable finalizers and dead-letter records.

Build event-driven integration end to end: define and publish platform events, subscribe safely with retries, use CDC, and read events from outside.

Learn the Salesforce REST API step by step: URLs, tokens, CRUD, SOQL, upsert and error handling, with curl and a tested Node client.

Build reliable background processing: chained queueables, finalizers, platform-event alerts, backoff retries, idempotency keys and AsyncApexJob monitoring.

Design maintainable Apex: interfaces, abstract classes, a metadata-driven factory, service and selector layers and secure data access, with tests.

Learn Apex classes by building a B2B quote pricing service: methods, constructors, interfaces, access, sharing, user mode, tests and limits.

Enforce CRUD, FLS and sharing in Apex with user mode, stripInaccessible and justified system mode, plus tests with real permission sets and a migration script.

Go deeper on triggers: the save order, recursion and re-entrancy, mixed DML, async handoff, platform events and partial-success DML in an order-to-cash build.

Learn Apex trigger events, context variables, before vs after, addError and bulk-safe related-record updates with a lead and opportunity sales-ops build.

Learn Batch Apex end to end: start/execute/finish, scope size, Database.Stateful, error summaries, platform events, chaining, scheduling and testing.

How @future methods work, their limits, callouts, the mixed DML workaround and when to migrate to Queueable, using a partner onboarding build.

Learn Queueable Apex end to end: enqueueing, callouts, chaining, transaction finalizers, AsyncOptions, retries and testing with an enrichment pipeline.

Run Apex on a schedule: cron syntax, System.schedule, Setup scheduling, batch and queueable hand-off, and tests, built on a nightly SLA-breach sweep.

A repeatable release routine with scripts: find stale API versions, run tests on a preview sandbox, health-check jobs and smoke test after go-live.

Validate every pull request by deploying to a test org and running Apex tests, with a coverage gate script, test selection and gated production deploys.

Source-driven development with Git: branches, pull requests, scratch orgs, a pre-commit guard script, CODEOWNERS and keeping metadata merges easy.

Choose the right React state tool: local state, reducers for complex updates, and context for sharing, with a tested order-entry example.

Why Apex triggers must handle 200 records at a time, and how Sets, Maps, aggregate and relationship queries keep a renewal trigger under governor limits.

Compare React and LWC for Salesforce work with the same account list built both ways, a comparison table, and a tested decision helper.

Handle loading, errors, race conditions, retries and a Salesforce proxy when fetching data in React with useEffect, with a fully tested hook.

Prompt-writing patterns for agent instructions: role, scope, steps, data rules and refusals, with before and after samples and a tested instruction checker.

Scope, constrain and test an AI agent before it meets customers: code-level guardrails in Apex, a red-team test set with a release gate, and staged rollout.

Compare profiles and permission sets with a regulated onboarding org: groups, muting, custom permissions, Apex checks, tests and CLI deploys.

A mental model for designing an Agentforce agent, with a worked order-status design, a design-spec linter you can run, and a read-only Apex action.

Reusable validation rule formulas for opportunities, a bypass switch for data loads, an Apex addError twin and tests that prove both layers.

How Salesforce decides who can see a record: OWD, roles, sharing rules and Apex managed sharing, with a working project-sharing example and tests.

Before vs after save, tight entry conditions, bulk safety and fault paths, shown with two real Flows on Opportunity and an Apex bulk test.

A practical decision framework for Flow and Apex, with a lead-scoring example built both ways: a Flow that calls a bulk-safe invocable Apex action.

Build a trigger handler framework with one trigger per object, bypass switches, a per-object Custom Metadata toggle and a recursion guard.

Learn when each LWC hook runs, how @wire and imperative Apex differ, and build a tested record-page component with cleanup and error handling.

Make REST callouts from Apex without hard-coded secrets: Named Credentials, a typed client, error mapping, delayed retries and mock-based tests.

Go beyond 75% coverage: data factories, bulk tests, callout mocks, the Stub API, permission tests and limit checks, built on a real case-escalation flow.

Choose between future methods, Queueable and Batch Apex by building one credit-score refresh three ways, with a decision table, limits and tests.

Write SOQL that scales: selective filters, bind variables, safe dynamic queries, aggregates, keyset paging and user-mode security, with a full case-search layer.

The per-transaction Apex limits you hit most, sync vs async, plus a limits-aware renewal engine that measures itself and hands work to a Queueable.
Try a broader word or clear the filters.