Salesforce interview questions with model answers. Pick a topic, filter by the company that asks the question, and open any question for the full answer. Pair it with hands-on SOQL and Apex trigger practice and the study notes.
Basics: A standard dashboard has a running user: all viewers see data as that person sees it. That is simple but can expose data to people who shouldn't have…
Basics: Standard filters test fields on the report's own records. Cross filters test other objects related to them, so you can ask "which accounts have open…
Basics: Report formats in order of complexity: Tabular (a plain list, no grouping), Summary (rows grouped by one to three fields with subtotals), Matrix…
Basics: Many tasks must happen on a clock rather than when a user edits a record: close stale cases, email owners of expiring contracts, or archive old data…
Basics: A report is a filtered, grouped list of records from a report type (Accounts with Opportunities, Cases with Contacts). A dashboard is a page of…
Basics: A lookup field is simply a pointer to another record, for example Contact to Account or a custom Project to Account. It models "is related to" rather…
Basics: When you create a relationship field on the User object, the type list includes Hierarchical. It links a user to another user, forming a tree. The…
Basics: Salesforce record security works by starting locked down and then opening access. OWD is that starting point. If Account OWD is Private, a user can…
Basics: A role describes where a user sits in the reporting structure. When OWD is Private or Public Read Only, a manager in a higher role can still see and…
Basics: Sharing rules extend access beyond OWD and role hierarchy to groups of users, horizontally across the org. They can only grant additional access (Read…
Basics: Manual sharing is the Sharing button on a record. It lets an authorized user pick users, groups, roles or roles-and-subordinates and grant Read Only…
Basics: A profile answers "what can this user do and see?" in the platform. Each user must have one profile, tied to a user license. Profiles are not about…
Basics: An object is a database table with fields, layouts, security and automation. Standard objects (Account, Contact, Opportunity, Case) arrive with…
Basics: People need readable record identifiers: case numbers, invoice numbers, ticket numbers. Salesforce IDs are not human friendly. An auto-number field…
Basics: A roll-up lets a parent display totals from its children without code, such as number of Order Lines, total Line Amount or the latest Child Date on…
Basics: A permission set is a collection of settings (object permissions, field permissions, system permissions, app/tab visibility, Apex class access, custom…
Basics: Assigning ten permission sets to every new Sales Rep is error-prone. A group packages them: assign one group, and the user gets the combined…
Basics: Instead of assigning a Case or Lead to one person, you assign it to a queue (for example "Tier 1 Support"). Members then pick items up, either…
Basics: Data Import Wizard is a browser tool for simple inserts and updates and is limited to 50,000 records at a time and to certain objects (accounts…
Basics: Without it, the same list (Region, Industry Segment, Priority) is typed separately on many fields, and they drift apart. A global value set stores…
Basics: When a user logs in from an unrecognized browser or IP, or any time multi-factor authentication (MFA) is required, Salesforce challenges them to prove…
Basics: Passwords get phished, reused and leaked. MFA adds a second proof, something you have (an authenticator app, security key or built-in biometric) so…
Basics: Reading an object model from many Object Manager screens is slow. Schema Builder draws the entity-relationship diagram for you, so teams can discuss…
Basics: Custom notifications appear in the bell icon in Lightning Experience and as push alerts in the Salesforce mobile app. They are for telling people…
Basics: Use it when the child cannot exist without the parent, such as invoice line items under an invoice. Salesforce enforces the dependency for you, so no…
Basics: Support teams often need a public "Contact us" form that creates a Case without email. Web-to-Case does this with a form you paste onto any web page…
Basics: A central admin team does not need to handle every password reset or new-hire setup. A delegated group defines what a trusted manager can do and over…
Basics: Pub/Sub API (endpoint api.pubsub.salesforce.com:7443) lets external systems publish and subscribe to platform events, change events and real-time…
Basics: A platform event is defined by its fields, types, lengths and required flags. Subscribers rely on those fields existing and meaning the same thing. If…
Basics: Events make integrations loosely coupled, but without rules an org can end up with duplicate, inconsistent events, unknown subscribers and silent…
Basics: Unattended integrations (nightly jobs, middleware) cannot show a login screen. With JWT bearer, the app signs a short-lived assertion saying "I am…
Basics: Every org has a rolling 24-hour limit on API requests, based on edition and licenses (for example Enterprise Edition gets a base of 100,000 plus an…
Basics: Each platform event definition has a Publish Behavior setting. After Commit is the default, and it protects consistency, since subscribers never hear…
Basics: Traditional replication runs scheduled bulk queries and compares timestamps, which is slow and consumes API calls. With CDC, Salesforce publishes a…
Basics: In ordinary TLS, only the server proves its identity. With mutual TLS (also called two-way SSL or mutual authentication), the client also proves it…
Basics: Without a gateway, every client app calls Salesforce REST endpoints directly, each with its own credentials and retry behavior. A gateway, such as…
Basics: An antipattern is a common design that looks reasonable but fails at scale. In Salesforce integrations the failures usually show up as limit errors…
Basics: Large companies often run several Salesforce orgs, for regions, acquisitions or business units. Customers and products can then exist in several…
Basics: Browsers enforce the same-origin policy, so a single-page app on https://app.example.com cannot read responses from https://mydomain.my.salesforce.com…
Basics: SSO reduces password sprawl and lets the company enforce MFA, session policy and de-provisioning in one place. Salesforce can be the service provider…
Basics: A webhook is an inbound HTTP call. Anyone who knows the URL can post to it, so the receiver must verify the sender. In an HMAC scheme, the sender…
Basics: Instead of polling for changes, a client subscribes to a PushTopic channel and receives JSON messages for records that meet the criteria, such as…
Basics: If an integration's credentials leak, an attacker outside your network could still use them. IP controls add a network condition: the credentials work…
Basics: Integrations fail silently unless you build visibility. A logging framework captures each inbound and outbound call so support teams can answer "did…
Basics: A digital certificate binds a public key to an identity; the matching private key proves you own it. Integrations use them to sign tokens, prove…
Basics: External systems send inconsistent data: extra whitespace, different date formats, unknown picklist values, duplicates. Cleansing means fixing or…
Basics: Platform events and Change Data Capture are delivered over the Streaming API (CometD) or Pub/Sub API. Anyone who can subscribe sees the messages, so…
Basics: Events can be delivered more than once (retries, reconnects, replay from an older ReplayId). If handling an event twice creates two orders, you have a…
Basics: CometD uses long polling: the client holds an HTTP connection open and the server responds when events arrive. Connections get dropped by networks…
Basics: Standard dashboards and reports refresh on a schedule or manual action. For live operations screens (queue depth, order status), the server should…
Basics: LWC runs in the browser, so it can use fetch(), but Salesforce's Content Security Policy only allows connections to approved origins. Apex runs on the…
Basics: When an external app uses OAuth, Salesforce issues an access token (short-lived session) and optionally a refresh token (long-lived). Policies set on…
Basics: Synchronous requests must finish quickly and within limits (10,000 ms CPU, 6 MB heap, 100 SOQL queries). Large loads exceed those, so you accept the…
Basics: Apex REST exposes classes annotated @RestResource as endpoints. If an uncaught exception escapes, Salesforce returns HTTP 500 with a generic error…
Basics: Each org has a total API request allowance over a rolling 24-hour period. When it is hit, further API calls fail. Integrations share this pool, so one…
Basics: Apex tests are not allowed to make real callouts, so any code that calls out fails the test unless a mock is registered. Mocks let you control the…
Basics: Salesforce operates multi-site infrastructure and has its own disaster recovery (site switching, status at trust.salesforce.com). Your responsibility…
Basics: A SIEM such as Splunk, Microsoft Sentinel, Datadog or QRadar collects logs from many systems and raises alerts. Salesforce activity is one of those…
Basics: Platform events started in two flavors: standard-volume, with a lower throughput, and high-volume, built for streaming scale such as IoT, telemetry…
Basics: Subscribers disconnect for many reasons: deployments, network issues, outages. ReplayId is the bookmark. When subscribing you choose a replay option…
Basics: Instead of polling for changes, the client keeps a long-lived connection and Salesforce pushes updates. Channel types: PushTopic…
Basics: Instead of one component calling another directly, a publisher writes an event (for example OrderShippede) and walks away. Subscribers independently…
Basics: Salesforce documents a set of integration patterns: Remote Process Invocation (Request and Reply, Fire and Forget), Batch Data Synchronization, Remote…
Basics: Integrations are high-value targets because they run unattended with broad access. Security is layered: who the integration is, what it can do, how…
Basics: A callout is an HTTP (or SOAP) request from Apex to an outside endpoint using Http, HttpRequest, HttpResponse. Salesforce protects its multitenant…
Basics: Platform events are messages on a Salesforce event bus. The publisher creates an instance of the event type (an sObject whose API name ends in e) and…
Basics: Standard auditing, such as Setup Audit Trail or Field History, shows what changed. Event Monitoring shows how the org was used. It is licensed as part…
Basics: Heroku apps work best with a relational database, while Salesforce data sits behind APIs with call limits. Heroku Connect copies the Salesforce data…
Basics: Salesforce meters calls from external systems (REST, SOAP, Bulk, Connect REST) so one org cannot hurt others. The allocation is roughly: a base per…
Basics: Creating an Account, a Contact and an Opportunity through the plain REST API takes three HTTP calls, each with network latency and API overhead. A…
Basics: Salesforce sends a Content-Security-Policy header with Lightning Experience and Experience Cloud pages. A browser enforcing it refuses to make…
Basics: Server-to-server integrations (CI/CD, middleware, scheduled jobs) cannot show a login screen. With JWT Bearer you upload the public certificate to a…
Basics: An outbound message is a declarative SOAP notification Salesforce sends to an external endpoint when a record meets criteria. Historically it was…
Basics: Heap is the memory your Apex transaction uses. A callout request and response body, plus the parsed objects built from them, all count. A big JSON…
Basics: In messaging, some messages can never succeed as sent (bad data, a deleted record, a bug), and endless retries just waste capacity. A DLQ isolates…
Basics: Instead of blocking on the remote system, Salesforce hands off the work: it publishes an event, sends an outbound message, or enqueues an async job…
Basics: This is one of the standard Salesforce integration patterns (Remote Process Invocation). Examples: validating an address, getting a credit score or a…
Basics: Salesforce ships three releases yearly and each increments the API version by 1.0 (for example v62.0). The version is part of the URL…
Basics: Browsers block a page at https://app.example.com from reading responses from another origin (https://myorg.my.salesforce.com) unless that server…
Basics: Apex tests are not allowed to make real HTTP callouts; without a mock the test fails with "Methods defined as TestMethod do not support Web service…
Basics: There are two caches: Org Cache (shared by all users, for example a token or a currency table) and Session Cache (per user session, for example…
Basics: ETL replication copies data from the source system into Salesforce on a schedule or stream. Virtualization leaves the data where it is and fetches…
Basics: Without middleware every system integrates with every other, producing a brittle web of custom code. A central platform exposes reusable APIs…
Basics: For most cases you define an Apex class mirroring the JSON and call JSON.serialize(obj). But sometimes the shape is dynamic, field names are Apex…
Basics: When an integration fails at 2 a.m., you need to know what was sent, what came back and which record it concerned. Debug logs are short-lived (24…
Basics: Triggers on platform events let Salesforce itself react to a message, for example to update records or call an external system. Only the after insert…
Basics: Streaming API uses the Bayeux protocol with CometD over long polling. It lets external apps get Salesforce changes pushed to them without polling the…
Basics: You choose a sync mode per mapping. The service handles field mapping, deletes, and writing back changes, so you do not write sync code. It is not…
Basics: Each EventBus.publish call counts as one DML statement (limit 150 per transaction), and each event counts toward an hourly publishing allocation for…
Basics: In point-to-point, system A calls B, C and D directly. A needs their endpoints, formats and availability, and adding a new consumer means changing A…
Basics: Before Winter '23, a Named Credential combined URL and auth in one record, so ten endpoints on the same OAuth provider needed ten copies. The new…
Basics: HTTP headers carry metadata separate from the body: what format you send (Content-Type), what you accept (Accept), authentication (Authorization), and…
Basics: Lightning Knowledge stores articles in one object (commonly Knowledgekav) and uses record types for what Classic Knowledge handled with separate…
Basics: An integration is a contract between systems that fail independently. Good design asks: Is it real-time or batch? Who is the system of record? What…
Basics: Not all data needs real-time updates. Nightly or hourly ETL (extract, transform, load) between Salesforce and a warehouse, ERP or MDM keeps systems…
Basics: Integrations fail: timeouts, 5xx errors, rate limits, record locks, bad data. Without a strategy, data silently disappears or duplicates. Inbound…
Basics: A synchronous callout holds the user's save or page load open until the remote service answers, up to the callout timeout. Triggers also cannot make…
Basics: Authors need signals: which articles customers and agents use, whether they helped, and whether agents attach them to cases. Salesforce stores these…
Basics: Without registration, Salesforce cannot know which client is asking for access or what it may do. A Connected App provides the OAuth client ID and…
Basics: It is designed for apps with a secure server side (a web app, an integration portal) that can keep a secret. The user's credentials go only to…
Basics: The Metadata API is coarse-grained: you retrieve or deploy whole components. IDEs need small, fast, interactive operations such as "compile this one…
Basics: It is a "push on change" mechanism: when a record meets criteria, Salesforce posts an XML message to a URL you configure. The receiver replies with an…
Basics: Salesforce is multi-tenant, so one org's code cannot freely contact any internet host. Admins explicitly approve each destination. This protects…
Basics: Apex SOAP services serve legacy systems that only speak SOAP/WSDL. You write ordinary Apex, add the webservice keyword to a static method, and…
Basics: Many legacy systems answer in XML (SOAP envelopes, REST with application/xml). Apex has no one-line XML-to-object converter like JSON.deserialize, so…
Basics: This is data virtualization. Rather than syncing records into Salesforce (using storage and risking staleness), Salesforce makes a live call to the…
Basics: In this flow the client redirects the user to Salesforce to log in, and Salesforce returns the access token in the URL fragment (after #) of the…
Basics: In a distributed integration you cannot know whether a timed-out request was processed. The client must retry, so the server must tolerate repeats…
Basics: Integrations send JSON strings. Apex needs typed objects to work with them safely. You define an Apex class (a wrapper) whose property names match the…
Basics: Metadata is the "configuration and code" of an org, separate from its data. The Metadata API lets tools move that between sandboxes, scratch orgs…
Basics: A queue bottleneck happens when work arrives faster than agents with the right capacity and skills can take it. Supervisors who only read end-of-day…
Basics: Data governance is the set of rules for who owns data, what quality is required, how long it is kept and when it is removed. In Service Cloud, cases…
Basics: A Skill (for example "Billing" or "ProductX") is assigned to agents (Service Resources) with an optional level 0 to 10. A work item such as a Case…
Basics: REST maps operations to URLs and HTTP verbs. A client sends an access token (OAuth) with each call. JSON is compact, human readable and natively…
Basics: Standard REST/SOAP calls handle roughly 200 records each and are synchronous, which is slow and expensive for millions of rows. Bulk API is designed…
Basics: Hardcoding a URL and a password or token in Apex is a security and maintenance problem: secrets leak through source control, differ per sandbox, and…
Basics: Synchronous transactions limit CPU to 10,000 ms, heap to 6 MB and 100 SOQL queries. Jobs such as nightly reassignments, SLA recalculations, case…
Basics: Standard REST maps to objects. Sometimes a caller needs one call that runs business logic across multiple objects, returns a tailored payload, or…
Basics: An entitlement process defines milestones, times and actions. Without versioning, changing a process affects active cases or requires deactivating the…
Basics: SOAP exchanges XML envelopes over HTTP. A WSDL describes operations and data types, so tools generate client stubs automatically. Salesforce offers…
Basics: OAuth separates the user's identity from the client application's identity. When the Connected App is created, Salesforce generates the Consumer Key…
Basics: Entitlement Management tracks support commitments. An entitlement process is a timeline of milestones (First Response, Resolution, and so on), each…
Basics: Service Cloud manages cases; many problems need a person on site. Field Service models the job (Work Order), the visit (Service Appointment), the…
Basics: Think of the Work Order as the job ticket. It links to the Account, Contact, Asset being serviced, Case, and Entitlement. A Work Order Line Item…
Basics: Traditional escalation passes a case up tiers, which is slow. Swarming instead brings experts to the problem at once. In Salesforce this typically…
Basics: During an outage, hundreds of customers open similar cases. Handling each separately wastes effort and gives inconsistent answers. Incident Management…
Basics: An incident is a symptom; a problem is the cause. Ten customers reporting the same error are ten cases but one problem. Tracking at the problem level…
Basics: Previously, phone systems routed calls separately from digital work, so an agent could get a call while handling several chats. Voice integration puts…
Basics: Technicians need the right part on the van. Inventory management tells you what each van and warehouse holds, what a job needs, what was used, and…
Basics: Contact center leaders watch how fast issues are resolved, how many are waiting, and how productive agents are. Salesforce provides report types…
Basics: Cases can include sensitive customer information. OWD sets the baseline access for each object; everything else only grants additional access. The…
Basics: A global team spans time zones so someone is always working. The challenge is routing new work to the active region, handing off open cases at shift…
Basics: Standard report types cover common combinations, but support leaders often need relationships that are not predefined, such as Accounts with Cases and…
Basics: Without limits, an agent could be pushed five chats and ten cases at once. Omni-Channel lets admins decide how much "room" each type of work consumes…
Basics: CaseComment records are the classic notes on a case. A comment has IsPublished: public comments are visible to customers in portals and Experience…
Basics: An Entitlement says what support a customer gets: account or asset, dates, business hours, entitlement process (SLA) and per-incident limits. An…
Basics: Without a signal, a technician still needs to see assigned cases, work orders and knowledge, and record results. The free mobile app mostly needs…
Basics: Standard Salesforce storage is already encrypted at the infrastructure level. Shield adds application-level encryption for specific fields (for…
Basics: Standard auditing is limited: Login History (about 6 months), Setup Audit Trail (180 days), and field history. Event Monitoring adds granular…
Basics: Field Service has two jobs: choose a time and resource for one appointment (scheduling) and improve the whole schedule (optimization). Optimization…
Basics: The original answer mixes two things. A wallboard is a big screen showing live KPIs. Salesforce's native supervisor tool is Omni Supervisor, an app…
Basics: Chatter is Salesforce's internal social feed. On a case, the feed shows posts, field changes (if feed tracking is on), emails and notes in one…
Basics: Agents cannot type notes and listen at the same time. Live transcripts give them a running record, and AI reads the text as it appears to surface…
Basics: Salesforce Field Service (formerly Field Service Lightning) schedules Service Appointments for mobile workers. Customers usually only get a vague time…
Basics: Experience Cloud sites default to a Salesforce URL (for example yourdomain.my.site.com/support) with default theme. Customers trust familiar URLs and…
Basics: A bot conversation is a set of dialogs. Each dialog does one job (check order status, reset password). Admins connect dialogs through menus, rules and…
Basics: Agents often decide ad hoc what to offer or do. Next Best Action (NBA) centralizes this: recommendations are records, a strategy chooses which to…
Basics: During an outage hundreds of customers open similar cases. Agents should not write hundreds of replies. Salesforce offers incident management…
Basics: Skills-based routing assigns work to agents with matching skills (for example "Billing", "Tier 2 Networking") and skill levels. Supervisors need to…
Basics: Case deflection means a customer's issue is solved without a case being created. Tools: a branded help center with Knowledge, Einstein Search…
Basics: Governor limits cap what one transaction may do (for example 50,000 rows returned by SOQL, 100 synchronous SOQL queries), but slowness on millions of…
Basics: An external ticketing system (Jira, ServiceNow, a legacy helpdesk) must create, update and read cases. Integration pattern choice depends on volume…
Basics: CSAT asks how satisfied the customer was with this interaction (rating scale). NPS asks how likely they are to recommend you on a 0-10 scale: 9-10…
Basics: Service Cloud runs on shared, multitenant infrastructure with high platform availability, but your design decides whether it performs. Architects…
Basics: Einstein Bots (now alongside the newer Agentforce service agents) use two kinds of variables. Conversation variables are collected or computed during…
Basics: Cases for hardware repair, billing disputes and technical support do not share the same statuses. A Support Process is a named list of Case Status…
Basics: In queue routing you create queues (for example Billing, Tier 1), put agents in them, and either have agents pull work manually or let Omni-Channel…
Basics: Agents repeat greetings, apologies, instructions and closings dozens of times a day. Quick Text lets admins or agents save these once with a name…
Basics: Knowledge keeps one master article (KnowledgeArticleId) with many versions (each a record with its own Id and VersionNumber). Customers always see the…
Basics: Customers prefer emailing support@company.com. Email-to-Case gives each support mailbox a Salesforce routing address; every email creates a case (or…
Basics: KPIs show whether support is fast, effective and satisfying. Speed: first response time, average resolution time, SLA compliance %. Efficiency: AHT…
Basics: Without pre-chat data, an agent opens a blank chat and spends the first minutes asking for name, email and topic. A pre-chat form asks those up front…
Basics: Without threading, every reply would create a new case. When an agent sends an email from a case, Salesforce embeds identifiers so that when the…
Basics: Agents lose time searching. A Knowledge component on the case page automatically runs a search using case text (subject by default) and lists matches…
Basics: Content decays: products change, steps stop working. Rather than guess, collect signals from readers: helpful or not-helpful votes, comments or…
Basics: Data categories are hierarchies (for example Product > Laptops, Region > EMEA) within Data Category Groups. Each article is tagged with categories…
Basics: After-call work (ACW) is the time agents spend updating the case once the conversation ends. Wrap-Up uses the conversation transcript and past cases…
Basics: Without Omni-Channel, agents pull cases from a queue view, which causes cherry-picking and uneven load. Omni-Channel tracks each agent's status and…
Basics: Both features convert inbound email to cases. The difference is where the mail is picked up. With On-Demand, you forward your support mailbox to a…
Basics: Traditional CTI connects a separate phone system through an adapter, so call data lives elsewhere and is synced after the fact. Voice makes the call a…
Basics: Knowledge works only if people can find trusted content. As article count grows into the tens of thousands, poor taxonomy, duplicates and stale…
Basics: During an outage, hundreds of customers raise cases about the same failure. A parent case represents the underlying incident (or problem); each…
Basics: Before Knowledge, support teams stored Q&A in the Solution object: a title (SolutionName), a body (SolutionNote), a status and optional categories…
Basics: An intent is what the customer wants (for example "Track my order"). You give example phrases (utterances) for each intent; the model learns to…
Basics: Many support contacts are repetitive: order status, password reset, store hours. A bot handles these 24/7 and deflects them from agents, or gathers…
Basics: Global support teams need the same troubleshooting article in several languages. Instead of cloning articles, Knowledge stores each language as a…
Basics: Omni-Channel pushes work (cases, chats, leads, voice calls) to agents based on capacity. Managers need to see whether queues are backing up and who is…
Basics: In high-volume queues, work is pushed to an agent who has a limited time to accept it. If nobody accepts, backlog grows and SLAs slip. You need a…
Basics: Account represents the company (or a Person Account for consumers); Contact represents the individual. A case has AccountId and ContactId lookups…
Basics: Agents waste time and make inconsistent choices when classifying cases by hand. A model trained on your closed cases learns patterns such as "billing…
Basics: Agents and customers search for articles with a few words. Without tuning, relevant articles can be buried under old or loosely matching ones. Search…
Basics: The adapter is just a web page served over HTTPS. Salesforce loads it in the softphone utility; the page includes the Open CTI JavaScript library and…
Basics: Without CTI, agents juggle a separate phone and Salesforce, searching manually for the caller. CTI identifies the caller (by phone number/ANI), opens…
Basics: Service orgs run high volumes with strict SLAs, so every customization has performance and maintenance cost. Declarative features are supported…
Basics: A Data Category Group is a taxonomy (for example Product, Region, Audience). Within it, categories form a tree (Product > Laptops > Gaming). Authors…
Basics: Customers email twice, call after emailing, or several contacts report the same outage. Duplicate cases double the workload and create conflicting…
Basics: Traditional case pages split emails, comments and activities into separate related lists, making the story hard to follow. Case Feed unifies them into…
Basics: Knowledge serves different audiences. Agents need internal procedures; customers need sanitized help; partners may need technical notes; the public…
Basics: A Contract records an agreement with an Account: Start Date, Contract Term in months, End Date (calculated), Status (Draft, In Approval Process…
Basics: Omni-Channel pushes work items (cases, chats, messaging sessions, custom objects) to agents. Each presence status is tied to one or more Service…
Basics: Large knowledge bases need regular cleanups: release a product's worth of drafts on launch day, retire an old version set, or expire stale content…
Basics: An SLA like "first response within 4 business hours" is meaningless if the clock keeps running overnight or on a public holiday. Business Hours define…
Basics: Agents in the Service Console constantly switch between cases, contacts and knowledge. Without a utility bar they must leave the case to take notes…
Basics: A Screen Flow is a Flow Builder flow that includes Screen elements with UI components (inputs, choices, data tables, display text). Support teams…
Basics: Web-to-Lead posts form data straight into Lead records from a public page, so bots can flood your org. reCAPTCHA makes the visitor prove they are…
Basics: A validation rule evaluates a formula on save. If it returns TRUE, the save fails and shows an error message. They enforce hygiene such as forecast…
Basics: Reps live in their calendar and inbox. Syncing events and email to Salesforce records builds an activity timeline automatically, which feeds pipeline…
Basics: Enterprise Territory Management (ETM) assigns accounts to territories (for example "EMEA - Banking") using rules on account fields such as Industry…
Basics: At quarter-end many reps update the same opportunities, accounts and forecasts at once. Salesforce is multitenant, so governor limits and row locking…
Basics: A console is a Lightning app whose Navigation Style is "Console" instead of "Standard". Instead of page-to-page navigation, records open as workspace…
Basics: Some work should not belong to one person until someone picks it up. A queue (stored as a Group record with Type = 'Queue') holds unassigned records…
Basics: An SLA says what support you promise and how fast. In Salesforce, Entitlement Management models this: an Entitlement is attached to a case, an…
Basics: ERP systems own orders, invoices, inventory and pricing; Sales Cloud owns accounts, opportunities and quotes. Integration keeps them aligned. The…
Basics: In Enterprise Territory Management you can design territories in a model that is not yet active, test it, and only then activate it. Separately…
Basics: An approval process is declarative automation: when a rep submits an Opportunity or Quote, Salesforce evaluates entry criteria, locks the record…
Basics: A screen flow shows a series of screens and runs logic between them. Embedding it on an Opportunity guides reps through qualification questions…
Basics: Salesforce can email groups of contacts, leads or users (mass email from list views, "List Email" in Lightning, Apex mass-email calls). It is meant…
Basics: Lead Status is a picklist that shows where a lead is in your process, for example Open - Not Contacted, Working - Contacted, Nurturing, Closed - Not…
Basics: Duplicates split activity history and opportunities across records. Merging picks a master, lets you choose the winning value for each conflicting…
Basics: Standard report types cover common joins. A custom report type (CRT) lets admins create new ones, choose "with" (inner join) or "with or without"…
Basics: Customers contact you by email, web form, phone, chat or messaging, or social channels. Each request becomes a Case. Agents work in the Service…
Basics: Without routing, cases land on whoever created them or on a default owner. An assignment rule says: if Priority = High and Product = Billing, assign…
Basics: Customers want confirmation that their request was received. The rule picks a template by criteria (for example language or product) and sends it from…
Basics: An Entitlement is a record linked to an Account (and optionally a Contact, Asset or Service Contract) with start and end dates, a type (for example…
Basics: Add a form to your public site with fields such as name, email, subject and description. When submitted, Salesforce creates a case with Origin = Web…
Basics: CaseComment is a child of Case with CommentBody (up to 4,000 characters) and IsPublished. Private comments are for agents; published comments appear…
Basics: Hard cases need input from several people: engineering, billing, a manager. A case team member is added with a Case Team Role that sets access to Read…
Basics: In an entitlement process each milestone has Success, Warning and Violation actions. A warning action uses a time trigger, for example 30 minutes…
Basics: The Clone action creates a new case record pre-populated with the source case's cloneable field values. The agent adjusts the subject or details and…
Basics: Classic Knowledge had Article Types, each with its own fields and layout. Lightning Knowledge uses one article object, with record types, page layouts…
Basics: In Standard navigation every click replaces the page. A console keeps each record open in a tab, and related records open as subtabs under it, so a…
Basics: Standard reports answer one question each. CRM Analytics adds interactive, cross-object dashboards with fast filtering. A template is a packaged app…
Basics: Delete in Salesforce is a soft delete: the record is flagged IsDeleted and hidden from normal queries and views. Users can restore their own records…
Basics: A territory model holds territory types, a hierarchy, and account assignment rules. Models have states: Planning, Active, Archived. Only one model is…
Basics: Reps send similar emails all day. A template saves time and keeps messaging approved. Merge fields insert recipient and record data (first name…
Basics: Large implementations fail from complexity, not missing features. Salesforce Well-Architected frames good solutions as Trusted, Easy and Adaptable. In…
Basics: If two resellers chase the same customer, they fight on price and the vendor looks bad. A registered deal says "this customer and opportunity belong…
Basics: Before a meeting a rep wants to know about layoffs, funding, leadership changes or product launches. Instead of searching the web, Account Insights…
Basics: A cadence (formerly High Velocity Sales, now Sales Engagement) is an ordered sequence of sales steps (call, email, LinkedIn/custom manual task, wait)…
Basics: Win-loss analysis needs structured data. If reps only mention competitors in notes, you cannot report on it. Each competitor entry on an opportunity…
Basics: Reps often update next step, stage or close date on many records. Inline edit removes navigation to each detail page. It respects field-level…
Basics: Exact matching compares values character for character. Fuzzy matching tolerates typos, nicknames, abbreviations and formatting differences, so "Bob…
Basics: A global company sells in EUR, JPY, USD and needs one comparable total. Three currencies matter: the corporate currency (the reporting base), the…
Basics: In plain multicurrency, one exchange rate per currency converts everything. When the euro moves, all historical deals change value in reports, which…
Basics: Roll-up summary fields exist only on the master side of a master-detail relationship, supporting COUNT, SUM, MIN and MAX (no average). Opportunity to…
Basics: Bad data (duplicates, stale opportunities, missing fields) wrecks forecasts and trust. Governance defines who owns each object, which fields are…
Basics: Round robin means giving each new lead to the next rep in turn so workload and response time stay even. Salesforce lead assignment rules route by…
Basics: Two separate questions are answered: what can a user do with an object and field (profiles, permission sets, field-level security), and which…
Basics: Standard fiscal year is 12 calendar months with a chosen start month. Retail and some enterprises use 4-4-5 or 52/53-week years, where periods have…
Basics: Setup Audit Trail and Login History show limited configuration and login data. Event Monitoring is a paid add-on (part of Shield) that adds detailed…
Basics: Salesforce data storage is limited per edition (a base amount plus per-user allocation; verify your org's numbers under Setup > Storage Usage). Most…
Basics: When reps leave or territories change, records must move. Ownership drives visibility under Private OWD, forecast roll-up and reporting, so transfers…
Basics: Field reps need account and opportunity data at the customer site, often without a good signal. The Salesforce mobile app (iOS and Android) runs your…
Basics: Field and travelling sales reps lose signal. Offline mode lets them open already-downloaded records, edit or create supported records, and keep…
Basics: Managers cannot listen to every call. ECI ingests call and video-meeting recordings, converts speech to text, and analyzes the text. Reps and managers…
Basics: Large programs (for example an annual event with webinars and email nurtures beneath it) need totals. Hierarchy lets you view both the individual…
Basics: Probability expresses likelihood to close, and Expected Revenue equals Amount times Probability. Stage values are a picklist configured with these…
Basics: An opportunity alone has just an Amount. Line items give detail: what is being sold, how many, at what price. That drives product-level reporting…
Basics: Sales Path is the chevron bar on a record page showing the stages of a picklist (for example Opportunity Stage). For each stage you can show Key…
Basics: Large deals involve solution engineers, legal and executives who do not own the record. An Opportunity Team grants them record access without…
Basics: By default Salesforce sends email from its own servers. Some enterprises must route outbound email via their own gateway for data loss prevention…
Basics: Every support interaction becomes a Case so work is assigned, measured and resolved. It links to an Account and Contact, holds a Subject and…
Basics: A scorecard compares reps against targets on a few leading and lagging indicators: calls made, meetings booked, pipeline created, win rate, and quota…
Basics: Inside sales reps need a repeatable follow-up pattern: call on day 1, email on day 2, LinkedIn on day 4, and so on. A cadence encodes that pattern…
Basics: A Lead is an unqualified prospect. When sales decides it is real, they click Convert. Salesforce creates or matches a business Account, a Contact…
Basics: Since Spring '20, all class fields are reactive for primitive values: if a field is used in the template (or in a getter the template uses) and its…
Basics: A wired property resolves to { data, error }; exactly one is populated. For imperative Apex use try/catch or .catch. The error typically has status…
Basics: Third-party code (Chart.js, D3, moment, custom CSS) cannot just be -tagged in LWC. You upload it as a static resource, import its URL with…
Basics: A unit test mounts one component in a fake DOM (jsdom), triggers events or data, and asserts output. It is fast, runs in CI, and needs no deployment…
Basics: Quick actions are buttons on record pages. A screen action opens a modal containing your component; a headless action runs code immediately with no UI…
Basics: Slow components usually suffer from too many server calls, huge lists in the DOM, expensive work in render paths, or unnecessary re-renders. Measure…
Basics: Hard-coded URLs break across Lightning Experience, Experience Cloud and mobile. A PageReference is a declarative JSON description of a destination…
Basics: Instead of polling, a component subscribes to a channel and a callback runs whenever an event is published. Channel names: platform events…
Basics: A KPI is one number tied to a business decision. A dashboard is a set of components (charts, gauges, tables, metrics), and each component reads one…
Basics: Use them for simple create, edit or delete actions in a component, such as a button that creates a Task. They return Promises. createRecord({ apiName…
Basics: Before LightningModal (GA from API 58.0, Spring '23), developers hand-built SLDS modals. Now a modal is itself a component class that you open from…
Basics: List views already encode filters, columns and sort order. Instead of re-implementing them in SOQL, you can read them: getListInfoByName({…
Basics: Add . Users pick files; the component uploads them as ContentVersion records, creating a ContentDocument linked to the record by ContentDocumentLink…
Basics: Many companies sell through resellers and distributors. PRM gives those partners a login to your Salesforce data (a partner portal) instead of…
Basics: Marketing sites need to capture inquiries without staff re-typing them. Web-to-Lead produces a form you paste into any website. When a visitor…
Basics: Out of the box, access to an account comes from ownership, role hierarchy, org-wide defaults and sharing rules. Those are broad rules. An account team…
Basics: Every LWC bundle has a metadata file. isExposed makes it visible to builders; masterLabel and description name it in App Builder; targets list…
Basics: Reps live in their mailbox. Email to Salesforce captures email into the CRM without opening it, so the account history shows what was said. How it…
Basics: Leaders want to know immediately when a large deal is created or closes, without watching reports. An alert fires on criteria and sends a…
Basics: Duplicate leads, contacts and accounts cause double outreach, bad reporting and merge work. Duplicate Management stops them at entry, rather than…
Basics: Managers used to export reports to see what moved. Pipeline Inspection shows the open pipeline by category, highlights deals whose close date was…
Basics: @wire configuration is an object. A plain value (fields: [NAME]) is fixed at setup. A string beginning with $ is a reference to a property on the…
Basics: A normal opportunity product has one amount. A schedule splits a product's revenue and/or quantity into dated installments (daily, weekly, monthly…
Basics: Caching avoids repeat server calls: two components showing the same account trigger one request and show consistent values. LDS adapters (getRecord…
Basics: Reps have many deals and limited time. The score is a prediction of likelihood to close, so reps focus on healthy deals and managers spot at-risk…
Basics: Traditional forecasting in Salesforce is Collaborative Forecasts: reps put opportunities in categories (Pipeline, Best Case, Commit, Closed), forecast…
Basics: B2B deals involve many people. A contact role is a junction record linking a Contact to an Opportunity with a Role picklist value. Without it, reps…
Basics: A subscription or installment deal has timing: 1,000 per month for 12 months, or deliveries each quarter. A revenue schedule records money by date; a…
Basics: They route leads by criteria such as country, state, company size, lead source or any field. Only one lead assignment rule can be active at a time…
Basics: Templates cannot run loops in JavaScript expressions, so you declare iteration in markup. Each rendered item needs a key so the engine can match old…
Basics: Both approaches call an @AuraEnabled Apex method. @wire is declarative and automatic. Imperative Apex is a plain function call that returns a Promise…
Basics: A child should not reach into its parent. Instead it announces that something happened ("item selected") with data, and whoever contains it decides…
Basics: Lifecycle hooks are methods the platform calls at defined moments so you can initialize, touch the DOM, or clean up. They are standard methods on a…
Basics: Components from different namespaces run on the same page, so they must not read or tamper with each other's data or the DOM. Locker enforced this by…
Basics: Instead of writing "call the server, wait, store result", you declare what you want: @wire(getRecord, { recordId: '$recordId', fields: FIELDS })…
Basics: Jest tests run in Node without a Salesforce server, so @wire adapters have to be replaced with test doubles. @salesforce/sfdx-lwc-jest supplies stubs…
Basics: getRecord returns a nested structure (record.fields.Name.value, record.fields.Name.displayValue). Reading it manually is verbose and breaks on…
Basics: Unlike lightning-record-form (auto layout) and lightning-record-view-form (read-only), the edit form lets you pick exactly which fields to show, in…
Basics: It is a base component for tables of records. You describe each column (label, fieldName, type) and pass rows as plain objects. Common types: text…
Basics: Each LWC renders into a shadow root (this.template). Elements in it are encapsulated, so document.querySelector cannot find them…
Basics: JavaScript garbage collection only frees an object when nothing references it. A component that adds a listener to window, starts a setInterval, or…
Basics: Hard-coded URLs break across contexts (Lightning Experience, mobile, Experience Cloud). A page reference is a platform-neutral description of where to…
Basics: Instead of writing an Apex controller for every read or save, you ask LDS for a record by Id and fields. It handles caching, so two components showing…
Basics: The original idea of an "async rendering directive" does not exist in LWC. Rendering is synchronous per component and batched by the engine in…
Basics: Escalation is the safety net for support queues. You define criteria (for example High priority cases) and a time limit (for example 4 hours); if the…
Basics: Both are Lightning Data Service components, so they need no Apex, enforce field-level security, and respect record types and validation rules. The…
Basics: You could build a date picker with raw and CSS. A base component does it for you: correct SLDS styling, keyboard navigation, screen reader support…
Basics: Without a boundary, an exception in one child can blank out a large part of the page. A boundary component wraps risky children, catches the error…
Basics: The template output is only in the DOM after rendering, so anything that needs actual elements (focus, measuring size, initializing a chart library…
Basics: Every LWC has a lifecycle: constructor -> connectedCallback -> render -> renderedCallback (after each render), and disconnectedCallback when removed…
Basics: Properties pass data; slots pass markup. A c-card component can define a place for a body and a header, and each parent decides what to put there…
Basics: LWC templates only allow simple property access such as {contact.Name}. They do not allow {a + b}, {!flag} or function calls. When you need a derived…
Basics: LWC owns its DOM and normally forbids manual DOM edits inside the template, because they would conflict with its diffing. When a library such as a…
Basics: Conditional rendering decides which parts of the template appear. For example, show a spinner while loading, an error panel if a call failed, and…
Basics: Wired Apex (cacheable=true) results are cached client-side for performance, so after you save something, the old list can still show. refreshApex…
Basics: When two components are siblings, unrelated, or built with different frameworks, events and properties cannot connect them. LMS gives them a shared…
Basics: You import it from 'lwc': import { LightningElement } from 'lwc';. Without extending it, the bundle compiles to a plain class with no rendering…
Basics: A toast is a temporary banner that confirms an action or reports a problem without navigating away. It is the standard way to give feedback after a…
Basics: By default, every execute() starts with the instance variables as they were set at construction; changes made in one chunk are lost. Implementing…
Basics: Jobs waiting in the Flex Queue are processed in order. If an urgent job is stuck behind a big one, you can move it forward without aborting anything…
Basics: Each call to System.schedule or each Schedule Apex entry creates a CronTrigger record. The platform caps the number of active ones at 100 per org…
Basics: Database.executeBatch(job, size) sets how many records are handed to each execute(). Each chunk is its own transaction, so size trades fewer…
Basics: Each execute() is a separate transaction with fresh limits, so a lookup that each chunk needs (for example a mapping table) would be queried again…
Basics: A plain update fails the entire chunk if one record fails. With allOrNone=false, valid records are saved and each failure is reported per record, so…
Basics: Callouts cannot happen in triggers or after uncommitted DML in the same transaction. Queueable Apex gives a clean new transaction where callouts are…
Basics: Setup objects change security and sharing structure, so Salesforce prevents mixing them with business-data DML in one transaction. The fix is to split…
Basics: Queueable jobs run later, so the Id is your only handle. Saving it on a record or log lets you answer "did it finish, and did it fail?" How it works…
Basics: All four run outside the user's transaction with higher limits. They differ in volume handling, parameters, monitoring and chaining. How it works /…
Basics: Both build Lightning UI (record pages, apps, utility bar, quick actions, Experience Cloud). Aura came first (2014); LWC arrived in 2019 and relies on…
Basics: When the work list is not a simple SOQL result, such as records parsed from an external API, a merge of two objects, or a filtered subset that SOQL…
Basics: Batch Apex start() must return either a QueryLocator or an Iterable. A QueryLocator is a server-side cursor: Salesforce holds the query and feeds…
Basics: A component lives in a folder under force-app/main/default/lwc/, for example lwc/accountCard/. The folder name is camelCase and every file inside uses…
Basics: Without encapsulation, one component's .title { color: red; } could restyle every .title on the page, and global document.querySelector calls could…
Basics: Reactive means "when this value changes, the template re-renders". Originally all reactive properties needed @track. Now a field like count = 0 is…
Basics: Components are black boxes. Anything not decorated with @api is private. Public properties let a parent configure a child ( ), and public methods let…
Basics: Async jobs keep running or waiting after you start them. abortJob is the programmatic equivalent of the Abort link in Setup, Apex Jobs and Scheduled…
Basics: Batch Apex lets you process large data sets in chunks. Without the Flex Queue, submitting a sixth concurrent batch would fail. Now…
Basics: Chaining lets you run steps in sequence, each in a fresh transaction with fresh async limits, for example fetch, then transform, then update. How it…
Basics: Async jobs normally run later, which makes them untestable. Test.stopTest() forces all async work started inside the block to complete before the next…
Basics: Synchronous Apex has 10,000 ms CPU, 6 MB heap and 100 SOQL; asynchronous gets 60,000 ms CPU, 12 MB heap and 200 SOQL queries per transaction, and…
Basics: finish() runs once after the last chunk. It is where you send summary emails and start the next stage of a multi-step pipeline (for example load, then…
Basics: A common loop: trigger enqueues a job, the job updates records, the update fires the trigger, which enqueues another job. Static variables reset…
Basics: Governor limits protect the multi-tenant platform. Because async work runs in the background, Salesforce lets it use more resources, which is why…
Basics: Use it to offload a callout or to avoid mixed DML errors after a trigger runs. Salesforce queues it and runs it when resources allow. How it works…
Basics: To run an Apex class on a schedule, implement Schedulable, then call System.schedule(name, cronExpression, instance) or use Setup, Apex Classes…
Basics: Batch Apex handles data volumes too big for one transaction, such as millions of records for cleanups or recalculations. How it works…
Basics: Previously, queueable jobs started as soon as resources were free. With the delay overload you tell the platform not to start the job before a minimum…
Basics: Use it for nightly rollups, cleanups, or periodic syncs. You can also schedule via Setup > Apex Classes > Schedule Apex, which is easy but limited to…
Basics: Database.executeBatch takes only the batch instance and the scope size, so everything the job needs (filters, record Ids, flags, a user to notify) has…
Basics: Governor limits are per transaction. Limits.getQueueableJobs() returns how many queueable jobs you have enqueued so far…
Basics: The Test class has a small set of async-related helpers. Most async verification is done by running the job inside the start/stop block and asserting…
Basics: Heap is the memory your Apex variables occupy in one transaction. Async transactions get 12 MB (sync 6 MB). Large JSON payloads, big lists of sObjects…
Basics: Every schedule uses a CronTrigger entry. Old test schedules, per-record schedules and forgotten integrations pile up and eventually block new…
Basics: Territories group resources and work geographically so dispatchers and the scheduling engine can restrict who works where. Operating Hours is a…
Basics: A Service Appointment is the visit; a Service Resource is a technician (or crew). The Assigned Resource record ties them together. Without an assigned…
Basics: A Work Order represents a job for a customer or asset. A Work Order Line Item (WOLI) is a child record representing one task inside it, such as…
Basics: A technician is a Service Resource; a territory is a region. The membership record connects them and adds time, type and hours details. How it works…
Basics: Operating Hours is a standard object with a time zone and child Time Slots. It is attached to Service Territories, Service Territory Members, and…
Basics: Instead of naming individual users in every sharing rule, create a group such as "EMEA Support", then target it. When people join or leave, you update…
Basics: In Salesforce Field Service inventory management, a Location is a warehouse or technician van; a Product Item records quantity of a product at a…
Basics: A territory has an address, but real service areas are irregular: a postcode set, a river boundary, a city district. Polygons capture that shape. How…
Basics: Some work, like installing heavy equipment or utility repair, requires a team. A Service Crew groups multiple Service Resources and is scheduled as a…
Basics: Rather than putting a territory on the technician record, Salesforce uses a junction so one technician can serve several territories over time. How it…
Basics: Computers cannot measure distance between "12 Main St" and "98 Oak Ave" without coordinates. Geocodes supply them. How it works: Salesforce can…
Basics: A Work Order says what needs doing; a Service Appointment says when and where a technician will do it. Its parent record can be a Work Order, Work…
Basics: Sometimes only a certain technician is allowed or contracted: a key account's dedicated engineer, or someone with a site clearance. Resource…
Basics: Splitting work into many Work Orders multiplies records, invoices and appointments. WOLIs keep related tasks together under a single Work Order. How…
Basics: Salesforce Field Service Optimization (a separate license add-on, Field Service Scheduling and Optimization) automatically improves schedules after…
Basics: Weak, reused or never-changed passwords are a main source of account compromise. Salesforce lets admins define how strong passwords must be and what…
Basics: Workflow Rules (field updates, email alerts, tasks, outbound messages) and Process Builder (processes) were Salesforce's older declarative engines…
Basics: It models formal sign-off such as discounts, expenses, contracts or purchase requests. A user clicks Submit for Approval; Salesforce evaluates entry…
Basics: For admins and some end users who need a quick import without installing software. Larger or more complex jobs belong in Data Loader or an ETL tool…
Basics: Duplicates harm reporting and customer experience. Duplicate Management separates detection (matching rule) from action (duplicate rule), so the same…
Basics: It prevents impossible combinations such as Country = India with State = Texas. The controlling field is a standard or custom picklist or checkbox…
Basics: Salesforce has four report formats: Tabular, Summary, Matrix and Joined. Tabular is like a spreadsheet: pick columns, filter rows, sort. It cannot…
Basics: Standard reports show data from one report type. Joined reports let you place, for example, Opportunities and Cases for the same account side by side…
Basics: Sometimes you need a calculation for analysis only, such as days open, discount percent, or a flag for large deals. Creating a permanent formula field…
Basics: Triage means getting the right case to the right person quickly. Assignment rules do that from criteria such as Origin, Priority, Product or Account…
Basics: Support teams receive mail at addresses like support@company.com. Email-to-Case creates a case for each new email, stores the message on the case, and…
Basics: For compliance and troubleshooting you need to know who changed a field and what it was before. You turn on tracking per object and per field…
Basics: If a tabular report lists records, a summary report answers "how many and how much per group", such as opportunities by stage or cases by owner…
Basics: Standard report types cover common pairs such as Accounts with Contacts. They cannot cover custom objects, unusual lookup chains, or "records without…
Basics: A row-level calculation works per record; a summary formula works on totals. For example, "Won amount divided by total amount per owner" needs both…
Basics: SLA breaches happen when cases are forgotten. Escalation rules are the simple, declarative safety net: after X hours without closure or update, move…
Basics: A Lead is an unqualified prospect. When it is qualified, conversion promotes it into the core CRM records: Account (the company), Contact (the person)…
Basics: In field service, the expensive part of a job is getting a person and a vehicle to the site. If the job needs a return trip (missing parts, wrong…
Basics: A Scheduling Policy is the rulebook the Salesforce Field Service (formerly Field Service Lightning) engine uses when it books, reshuffles or optimizes…
Basics: Technicians often work without signal. Instead of custom code, admins build a Screen Flow, expose it as a Flow quick action or global action on…
Basics: Default policies suit generic businesses. Different companies value different things: a utility prioritizes emergencies, a retailer prioritizes…
Basics: Agents repeat the same multi-step actions many times a day, such as sending a standard reply, setting Status to Waiting on Customer, and adding a…
Basics: Unlike record-triggered or scheduled flows, a screen flow runs only when a person starts it and waits for input. It is used for guided intake (new…
Basics: Instead of emails and training decks, you place guidance exactly where users work. It is created in Setup under In-App Guidance. Prompts can be a…
Basics: Required fields and picklists cannot express conditional business rules such as "Close Date cannot be in the past" or "Discount over 20% needs a…
Basics: A territory is a segment of accounts (by geography, industry, size) that a set of reps owns, independent of the role hierarchy. Assignment rules…
Basics: Reps live in email. Inbox shows the Salesforce record for the sender or recipient in a side panel, lets them insert templates, track opens and clicks…
Basics: Reps normally dial a phone, then type notes into Salesforce. Sales Dialer lets them call from the record page using the browser (WebRTC, no desk…
Basics: Field sales reps lose time driving inefficient routes. Salesforce Maps geocodes Accounts, Leads, Contacts and custom objects, displays them as markers…
Basics: Sales should call leads that are both interested (score) and appropriate (grade). A highly engaged student who can never buy is high score, low grade…
Basics: A standard opportunity report shows the present. Leaders also want to know what the pipeline looked like last week or last quarter, which deals…
Basics: A forecast number is meaningless without a goal. Quotas give each rep and manager a target for a month or quarter. The Forecasts tab then displays…
Basics: Not every agent can handle every case, for example "Spanish speaking" or "Billing, level 7+". Skills model that. Admins define Skills (Setup >…
Basics: Omni-Channel pushes work (cases, chats, leads, custom objects) to agents rather than letting them pick. Two configuration objects shape this. The…
Basics: In Service Cloud, Entitlement Management attaches an Entitlement Process to a Case. The process has Milestones (for example First Response in 1 hour…
Basics: Large service orgs fail through sprawl: duplicate flows, conflicting triggers, too many record types and unmanaged changes. Governance means agreed…
Basics: Agents solve the same problems repeatedly. Knowledge captures the answer once, so it can be searched and attached to cases. Customers can self-serve…
Basics: An HTTP callout waits for an external server. Without a limit, a slow server could tie up your transaction. Apex lets you set a per-request timeout…
Basics: Companies end up with several orgs (acquisitions, regions, business units) that need to share customers, products or orders. Master Data Management…
Basics: Heap limits (6 MB sync, 12 MB async) apply to Apex, not to Bulk API clients. The memory problem in large extracts is on the client or middleware side…
Basics: A Salesforce transaction is all-or-nothing for database changes, but an external system's change is outside that transaction. If you save a record…
Basics: Streaming APIs push Salesforce events to external systems. The older approach is Streaming API with CometD (Bayeux protocol, HTTP/1.1, JSON). Pub/Sub…
Basics: Apex tests cannot make real HTTP callouts. You supply a mock class implementing HttpCalloutMock (or WebServiceMock for SOAP) and register it with…
Basics: Platform API limits (daily API requests, concurrent long-running requests) protect the org globally, but one noisy client can still exhaust them. Rate…
Basics: Both are event streams delivered after commit. CDC answers "what changed in the database?" with no code to publish. Platform events answer "something…
Basics: Integrations fail at peak, not on average days. Load testing simulates peak concurrent traffic to find bottlenecks before production. Salesforce has a…
Basics: Every release adds an API version (for example Spring, Summer and Winter each increment by 1.0). Clients call endpoints with the version in the URL…
Basics: A blueprint is the architecture document that stops integrations being built ad hoc. For each interface it answers: what data and process, which…
Basics: Normally, sharing data between orgs means ETL, replication and sync jobs, which create latency, storage cost and duplicates. Salesforce Connect…
Basics: Without governance, each team builds point-to-point integrations with different auth methods, hard-coded endpoints and no logging. Over years this…
Basics: After login Salesforce issues a session ID stored in a cookie. Anyone who steals it (sniffing, XSS, shared computer) can act as the user without a…
Basics: Governor limits are per transaction and shared with Apex: 100 synchronous SOQL queries, 150 DML statements and 10,000 DML rows. A record-triggered…
Basics: A future method is a static void method annotated @future that runs asynchronously in its own transaction, typically to make callouts after DML or to…
Basics: Reps forget to log emails and meetings, so CRM activity data is incomplete. EAC reads each connected user's mailbox and calendar through OAuth…
Basics: Collaborative Forecasts show each rep's pipeline and commit rolled up the management chain. Out of the box this is Opportunity Revenue by Close Date…
Basics: Large customers are structured as groups: global parent, regional subsidiaries, local branches. Setting the Parent Account on each record creates a…
Basics: Marketing needs to know which campaigns contribute to revenue, not just which created the lead. Campaign influence connects campaigns to opportunities…
Basics: Price books list products with prices. The Standard Price Book exists automatically, cannot be deleted, and contains list prices for all products…
Basics: Inside sales reps run high-volume outreach to many leads and contacts. Sales Engagement automates what to do next and when. Admins or sales ops design…
Basics: On large deals multiple people contribute: an account executive, a solutions engineer, a partner manager. Splits record how credit is shared so quota…
Basics: Reps with hundreds of leads cannot tell which will convert. Einstein Lead Scoring (part of Sales Cloud Einstein, and now marketed within Einstein 1…
Basics: Instead of hard-coding labels or picklist options, an LWC can ask the platform at runtime. getObjectInfo returns the object's labels, fields (with…
Basics: CSS in a component's .css file applies only to that component's template. Parent styles do not reach into a child's shadow tree and your styles do not…
Basics: Salesforce has no built-in dead letter queue for async Apex. If a job fails, the work is simply lost unless you recorded it. A dead letter queue is a…
Basics: All Opportunity stages live in one master picklist (StageName). A Sales Process is a named subset of those values. A Record Type then points to a…
Basics: AsyncApexJob can hold many rows in busy orgs (every batch chunk, queueable and future creates entries). A query with no filter or filtering on…
Basics: Chaining means a queueable's execute method enqueues another queueable, so work proceeds in sequential steps (fetch, transform, save), each in a fresh…
Basics: Unlike @future, which allows only primitives or collections of primitives, a Queueable is a normal Apex object. Anything serialisable can be a field…
Basics: One uncaught exception fails that chunk and rolls it back, but the job continues with later chunks. If you do nothing you only see an email to the…
Basics: A batch chunk knows nothing about other chunks. If a parent's children are split across chunks, or a parent is processed in one transaction and its…
Basics: Users often forget what to fill in or do at each stage of a sales process. Path sits at the top of a Lead, Opportunity, Case or custom object record…
Basics: By default, Batch Apex is not permitted to make callouts to external web services. Salesforce makes you opt in by adding the marker interface…
Basics: When you call Database.executeBatch, System.enqueueJob, or a future method is invoked, Salesforce creates an AsyncApexJob row you can read. Setup has…
Basics: Batch Apex processes records in chunks (default scope 200, range 1 to 2000), and every chunk is its own transaction. By default the class instance is…
Basics: Asynchronous Apex runs work later, in its own transaction with higher limits. @future was the first tool but is restrictive. Queueable Apex is a class…
Basics: On a work order or appointment a technician repeatedly does the same things: log parts used, capture meter readings, request inventory, collect a…
Basics: The Gantt in the Salesforce Field Service dispatcher console shows resources as rows and appointments as bars on a timeline. With dozens of resources…
Basics: Salesforce Field Service (formerly Field Service Lightning) separates the login (User) from the schedulable worker (ServiceResource). A Service…
Basics: A trigger is Apex code that runs automatically before or after a record is inserted, updated, deleted or undeleted. To create a child Contact you need…
Efficiency is a number on the Service Resource that describes how fast a technician works compared with the standard duration. The scheduling engine uses it…
Use an anti-join: select active resources whose Id is not in the set of resources assigned to appointments tomorrow. Why it works The subquery returns the Ids…
A Service Appointment is created against a parent record (such as a Work Order) with a scheduling window and duration. Notes ParentRecordId links the…
Query from Assigned Resource, which links appointments and technicians, and read the parent fields through relationships. Why this shape One row per…
Field Service Mobile Settings define how the mobile app behaves, for example offline data, location tracking, notifications and which actions appear…
Where duration comes from The Work Type holds an estimated duration and duration type (minutes or hours). The Work Order takes that value when it is created…
Service Resource Availability is the basic work rule that checks whether a resource can actually take the appointment at that time. It considers The…
Working Territories restricts a resource to appointments in territories where it has an active Service Territory Member record at that time. Behaviour A…
Service Appointment Status is a customisable picklist, but each value maps to a fixed Status Category, such as None, Scheduled, Dispatched, In Progress…
A Service Appointment has several time fields that serve different purposes. Earliest Start Permitted and Due Date: the scheduling window. The engine must…
Field Service uses Permission Set Licenses (to unlock features and objects) and permission sets (to grant access). Licenses (typical) Field Service Standard…
Approach Use a full or partial copy sandbox with realistic territories, resources, skills and appointments. Record baseline KPIs: utilization, average travel…
Field Service creates large volumes of Work Orders, Service Appointments, Assigned Resources and Product Item Transactions. Mitigations Write selective…
Structure Model territories as a hierarchy (country → region → city), with correct Operating Hours and time zones. Use different Scheduling Policies by region…
Steps Create a Resource Absence for the technician (type such as Medical), so the engine treats the time as unavailable. The Gantt highlights conflicting…
Work through the causes in order of likelihood. Dates: are Earliest Start Permitted and Due Date valid, and not already in the past? Territory: does the…
Typical flows ERP → Salesforce: customers, assets, products, locations and sometimes work orders. Salesforce → ERP: completed work, parts consumed, time and…
Salesforce is adding generative AI to Field Service, including work order summaries, mobile work briefings for technicians, and Agentforce actions for service…
Architecture An Experience Cloud site for customers (Field Service templates are available). A Flow or LWC where the customer picks an appointment. Apex…
Cannot Complete is a Service Appointment status used when the visit happened or was attempted, but the work was not finished. Typical reasons: customer not…
When location tracking is enabled and the technician has granted permission, the mobile app periodically updates the Service Resource's Last Known Location…
Use the Lightning Mobile Capabilities module, lightning/mobileCapabilities, inside an LWC. It exposes native features such as the barcode scanner, location…
Products Required (the ProductRequired object) lists the parts that a job is expected to need. It can be linked to a Work Type, Work Order or Work Order Line…
Data model Locations of type Warehouse and Van (one per technician vehicle). Product Items hold the quantity on hand of each product at each location. A…
A Product Item Transaction (PIT) is an automatic record created whenever the quantity of a Product Item changes. Typical triggers Product consumed on a Work…
A Return Order moves parts back, for example unused stock returned from a van to the warehouse, or a defective part sent to the supplier (RMA). Objects Return…
Field Service tracks costs a technician incurs on a job with Expense records, which can be grouped into an Expense Report. Typical flow The technician logs an…
Time tracking uses two objects. Time Sheet: a period record for one Service Resource, such as a week. Time Sheet Entry: a block of time inside it, linked to a…
Each time Resource Schedule Optimization (RSO) runs, an Optimization Request record is created. It stores the type of run, its status, timing and the scope…
In the Field Service managed package, Scheduling Policies, Work Rules and Service Objectives are records (data), not metadata. They do not travel in change…
Time zone is defined on Operating Hours and used with Service Territories, so availability is calculated in the territory's local time. Common mistakes…
A capacity-based resource is a Service Resource that is scheduled by how much work it can take in a period, not by exact time slots. Setup Mark the resource…
The Pinned checkbox locks a Service Appointment to its current resource and time. Automatic scheduling features, including optimization and Reshuffle, will…
The In Jeopardy flag marks an appointment that is already scheduled but now violates a work rule. An In Jeopardy Reason explains why. Typical causes A…
Both use the Scheduling Policy, but they answer different questions. Get Candidates Returns a ranked list of resources who could do a given appointment, with…
Reshuffle makes room for an important appointment that could not be scheduled. How it works It identifies lower-priority appointments that can be moved…
Fill-In Schedule looks for gaps in technicians' schedules and places unscheduled appointments into them. Key points It only adds appointments. Existing…
Service objectives are soft goals. Work rules decide who is allowed, and objectives decide who is best. ASAP Scores slots higher when they are earlier within…
Max Travel From Home limits how far a technician can be sent from their home base, which comes from the Service Territory Member address. You configure a…
Extended Match is a work rule that compares a field on the Service Appointment (or its related record) with a field on the Service Resource. The resource is…
A Resource Preference record connects an Account, Work Order or other record to a Service Resource with a preference type. Required: only this resource may be…
A Service Territory Member links a Service Resource to a Service Territory. The membership type changes how the resource is used. Primary: the resource's main…
Every person or group in Field Service is stored as a Service Resource, and the Resource Type controls how it is used. Technician: a field worker linked to a…
A Maintenance Plan defines recurring preventive work for one or more Assets (Maintenance Assets). Key settings Frequency and Frequency Type: how often work is…
Warranty management lets you decide whether a repair is covered or billable. Warranty Term is the reusable definition of coverage: duration, coverage type and…
Service Contract is the agreement with the customer. Contract Line Items list the covered assets or products, and Entitlements define the support terms, such…
Both products schedule appointments, but they solve different problems. Lightning Scheduler Customer-facing appointments with employees, for example a bank…
Work Plans group ordered Work Steps that tell a technician exactly what to do on a Work Order or WOLI, such as safety check, diagnose, repair and verify…
A Work Order can point to a parent through ParentWorkOrderId, which builds a hierarchy. Use parent/child Work Orders when The job has separate phases, for…
A Case records the customer's problem (symptoms, entitlement, SLA, communication). A Work Order records the physical work needed to fix it: where, what, which…
Release Readiness strategies involve reviewing upcoming seasonal release notes, testing new features in sandbox preview environments, and updating…
Mass Delete records administrative tool enables authorized users to delete batches of accounts, contacts, leads, and custom object records based on filter…
Data Export scheduled services allow administrators to generate and download weekly or monthly comma-separated value (CSV) archives of all organization data…
Translation Workbench enables administrators to translate custom field labels, picklist values, and validation messages into multiple localized languages for…
Multi-Currency enablement allows organizations to track opportunities, quotes, and products in multiple foreign currencies using configurable corporate…
My Domain allows organizations to customize their Salesforce login URL with corporate branding, enforce single sign-on authentication policies, and unlock…
Login Access Policies allow administrators to grant secure, temporary login access to Salesforce support or partner representatives to troubleshoot…
Data storage capacity limits govern the total megabytes occupied by object record rows, while file storage limits govern document attachments, files, content…
Debug Logs capture granular transaction execution steps, database queries, and error stacks for specific users or automated processes, helping administrators…
Setup Audit Trail records every administrative configuration change made within an organization over the last 180 days, displaying timestamps, user names, and…
Fiscal Year settings allow administrators to configure standard or custom fiscal calendars, aligning revenue reporting and sales forecasting periods with…
Business Hours and Holidays configure the operating schedule of support teams, ensuring accurate calculation of service level agreements, milestones, and case…
Company Information settings manage core organization properties including organization ID, default currency, fiscal year start months, language settings, and…
Custom Settings store lightweight, reusable application configuration data in memory caches across transactions, providing fast data retrieval for validation…
Custom Metadata Types allow administrators to build custom configuration records whose structure and data can be deployed via metadata packages, supporting…
Managed Packages are secure, locked application bundles created by ISV partners that contain proprietary intellectual property and allow seamless upgrades…
Outbound and Inbound Change Sets allow administrators to securely migrate metadata configurations between related Salesforce environments (such as sandboxes…
Full Sandboxes duplicate the complete production metadata configuration and 100% of production data records, serving as the ultimate environment for load…
Partial Copy Sandboxes replicate complete metadata configuration along with a sample subset of production data, making them ideal for user acceptance testing…
Developer Sandboxes provide isolated environments containing metadata configuration only, designed for developer unit testing and building custom declarative…
Dynamic Forms allow administrators to place individual field components anywhere on a Lightning record page layout independently of page layout editor…
Lightning App Builder empowers administrators to construct custom, responsive record pages and application layouts using drag-and-drop components without…
Enterprise Territory Management enables administrators to structure sales territories hierarchically based on account attributes, automatically assigning…
Products and Price Books allow administrators to maintain a standardized catalog of sellable items with multi-currency pricing, discount schedules, and…
Opportunity stages define the progressive milestones of a sales pipeline, mapping directly to revenue forecasting categories, probability percentages, and…
Salesforce CPQ (Configure, Price, Quote) is a managed package (namespace SBQQ) that sits on top of Sales Cloud. It makes quoting faster, more accurate and…
Opportunity Contact Roles link people (contacts) to a deal and describe what part each plays: Decision Maker, Economic Buyer, Influencer, Technical Evaluator…
In Sales Cloud, the standard Quote object connects an opportunity to a priced, shareable offer, and it feeds the quote-to-cash process: opportunity \u2192…
Enterprise Territory Management (ETM) is Salesforce's feature for organising accounts into territories, usually by geography, industry, account size or…
Collaborative Forecasts let sales teams predict revenue, roll the numbers up through a hierarchy, and adjust them together, all inside Salesforce. Core…
Opportunity stages describe where a deal is in the sales process. Forecast categories describe how confident the company is that the deal will close, and they…
Custom Metadata Types store configuration as deployable metadata, so behaviour can change without code edits. Why they suit Field Service Scheduling Policies…
A hybrid workforce mixes employees with external contractors. Field Service handles both as Service Resources, with differences in how they are scheduled…
Architectural Overview & Core Concepts Multi-Day Activities in Salesforce Field Service allow a single Service Appointment to span across multiple days or…
External contractors should see only the records they need, so security is built on least privilege. Approach Set organization-wide defaults for Work Order…
Emergency dispatching is the process of finding the best technician for an urgent job right now, even if that means disrupting a planned day. How it works The…
An escalation Flow finds appointments that are late or about to be late, and makes sure someone acts. Option 1: record-triggered Flow with a scheduled path…
Work dependencies (time dependencies) tie two appointments together so they happen in a required order or at a required time. The scheduling engine respects…
Access to the Dispatcher Console is controlled by licenses and permission sets, not by profile alone. Layers Permission Set Licenses (for example Field…
Work Orders are linked to Assets, so every visit becomes part of that equipment's history. How it works The Work Order has an Asset lookup (and Work Order…
Data priming is the step where the mobile app downloads the records a technician needs and stores them on the device. Offline work is only possible for data…
Good collaboration keeps dispatchers and technicians in sync during the day. Tools Chatter on Service Appointments and Work Orders: a shared conversation…
The scheduling engine works in stages. Hard constraints decide who is allowed, and soft goals decide who is best. Candidate selection (work rules) For a…
A Work Type is a reusable template for a kind of job, such as "Boiler Installation" or "Annual Inspection". Defining it once makes every job of that type…
A Product Consumed record states that a technician used some quantity of a part on a Work Order or Work Order Line Item. It links the Product Item (stock at a…
Salesforce Field Service estimates driving-style travel between jobs. It does not plan public transit routes natively. What it supports Default estimate…
Appointment Assistant improves the customer experience around the visit, so the customer is informed instead of waiting and calling. During the service…
A signed Service Report turns the visit into a clear record that both the customer and the company can trust. Business value Proof of work: a PDF with details…
Time Slots are the bookable windows defined inside Operating Hours, such as Monday 08:00 to 12:00 and 12:00 to 17:00. They shape what customers can book, and…
The automated engine treats a Resource Absence as a hard block, and it does so in every scheduling feature. Where it applies Scheduling and Get Candidates/Get…
The name "Enhanced Field Service (EFS)" is used informally in some material. The feature Salesforce documents for a newer scheduling approach is Enhanced…
Maintenance plans move a business from fixing things after they break (reactive) to servicing them before they fail (proactive). What changes Planned, not…
The Service Appointment status shows where a visit is in its life, and both the scheduling engine and automations react to it. Status categories (typical…
The mobile app works from a local database on the device, so technicians can keep working with no signal. Mechanism Priming: at login (and periodically) the…
The Dispatcher Console is the dispatcher's control centre for planning and managing the day. Core features Gantt chart: a timeline of each resource's…
The Match Skills work rule makes sure an appointment is only given to a technician who has every skill the job needs, at the right level. How the check works…
Architectural Overview & Core Concepts Work Order Line Items (WOLIs) break down a complex parent Work Order into distinct sub-tasks, parts, or service…
Architectural Overview & Core Concepts Time Slots in Salesforce Field Service define specific windows of time when a customer is available to receive a…
Architectural Overview & Core Concepts Enhanced Field Service (EFS) is an upgraded architectural framework in Salesforce Field Service that shifts critical…
Architectural Overview & Core Concepts Service Report Templates in Salesforce Field Service generate professional, branded PDF documents summarizing the work…
Architectural Overview & Core Concepts Appointment Assistant is an advanced Salesforce Field Service feature that enhances customer experience during service…
A Service Crew is a group of technicians that is scheduled as one unit for jobs that need several people with different skills. Structure A Service Resource…
A Resource Absence records time when a technician is not available to work, so the schedule stays realistic. Fields and types Resource, Start and End, and a…
Both change inventory, but for different reasons. Product Transfer Product Consumed --------- Meaning Stock moves between locations Stock is used on a job…
Architectural Overview & Core Concepts Maintenance Plans in Salesforce Field Service (SFS) transition organizations from reactive break-fix operations to…
Architectural Overview & Core Concepts Resource Schedule Optimization (RSO) is an automated, cloud-based scheduling engine that continuously analyzes…
Architectural Overview & Core Concepts Global Optimization and In-Day Optimization serve distinct phases of dispatch operations. Global Optimization runs…
Architectural Overview & Core Concepts Field Service Mobile Flows bridge the gap between offline technician execution and enterprise automation. Unlike…
Briefcase Rules decide which records are downloaded to a technician's device for offline use. How they work A rule names an object, optional filters, an…
A Product Consumed record says that a technician used a quantity of a part on a Work Order or Work Order Line Item. Fields that matter Product Item: the stock…
Field Service has no single "labour law" switch. Compliance is built from several settings that you combine, and then checked with reports. Building blocks…
A Required Resource is a technician a customer or job must be served by. It is set with a Resource Preference record of type Required, and the Required…
Travel time is calculated between consecutive appointments and from the technician's home base, so schedules stay realistic. Inputs Geocoded addresses…
Appointment Assistant is a customer-facing part of Field Service that keeps the customer informed about their service visit, and lets them make simple…
A Service Report Template defines the layout of the PDF that a technician generates at the end of a job, and that the customer can sign. What a template…
Time Slots define when a territory is open for work. They are the building blocks of Operating Hours. Structure Operating Hours: a named calendar with a time…
The Field Service managed package (namespace FSL) exposes global Apex classes to schedule and book appointments from code. Common APIs…
"Enhanced Field Service (EFS)" is an informal name, so first check what your source means. The newer approach Salesforce documents for scheduling is Enhanced…
A Resource Absence is a period when a Service Resource is not available for work, such as vacation, sickness, training, a meeting or a break. Key fields…
Skills make sure a job is only given to someone qualified to do it. Objects Skill: a setup record such as "HVAC Certified". Service Resource Skill: links a…
Service Crews are one of two ways to send several technicians to one job. The other is to create separate appointments for individual resources and link them…
The Dispatcher Console is the main workspace for dispatchers. It combines scheduling, monitoring and dispatch tools on one screen. Primary features Gantt…
Architectural Overview & Core Concepts Inventory Management in Salesforce Field Service tracks physical spare parts and equipment across warehouses, mobile…
Maintenance Plans automate recurring preventive visits for assets, so work is planned before equipment fails. Setup A Maintenance Plan defines the start date…
KPIs show whether the field operation is efficient, reliable and profitable. The most common ones are: KPI What it tells you ------ First-Time Fix Rate Share…
Custom LWCs can run inside the Field Service mobile app as quick actions or on record pages. Build steps Create the LWC and expose it for the right target in…
Triggers on Field Service objects, such as Service Appointment, Work Order and Assigned Resource, run alongside the scheduling engine and mobile sync. Poorly…
Offline sync lets technicians keep working without signal and sends their changes to Salesforce when the connection returns. In simple steps Download: when…
The core of Field Service is a chain of objects from the customer request to the person doing the work. Relationships Work Type: a template with estimated…
A component re-renders when a reactive field used in the template changes. Since Spring '20, all class fields are reactive, but only on reassignment…
Server side: throw an AuraHandledException so the client gets a clean message. Client side: the error object has shape error.body.message (or error.body as an…
Prefer Lightning Data Service and cacheable @wire calls to avoid redundant server trips. Fetch only needed fields and records; paginate large lists. Use…
Use the @salesforce/sfdx-lwc-jest package; tests live in a tests folder next to the component. Mock Apex with jest.mock('@salesforce/apex/...', ..., {…
Both isolate components from each other for security, but they work differently. Locker Service wraps objects in secure proxies (SecureElement, SecureWindow)…
Upload the library as a Static Resource (e.g. chartjs). Import the resource and loaders: loadScript/loadStyle return promises; load once, guard with a flag…
renderedCallback fires after every render, and any change to a reactive property used in the template triggers a re-render. Also, it runs for each component…
Configure the component's js-meta.xml: Set isExposed to true, list targets, and declare each admin-configurable property in targetConfigs; the JS must expose…
Import ShowToastEvent and dispatch it: Toasts work in Lightning Experience and the Salesforce mobile app, and in Experience Cloud sites that support them.
Use NavigationMixin from lightning/navigation: Common type values: standardrecordPage, standardobjectPage, standardwebPage, standardnavItemPage, commnamedPage…
Conditional rendering (The older if:true / if:false directives still work but lwc:if, lwc:elseif, lwc:else are the current recommendation.) Iteration Also…
Shadow DOM encapsulates a component's markup and CSS so outside code and styles can't accidentally affect it. Salesforce uses synthetic shadow (a polyfill) in…
Slots let a parent pass markup into a child's template, making components reusable containers. Child: Parent: Default (unnamed) slot receives all content…
Use Lightning Data Service wire adapters from lightning/uiRecordApi: Importing fields via @salesforce/schema gives compile-time validation and handles…
All use Lightning Data Service, so no Apex is needed and FLS/sharing are respected. lightning-record-form – quickest option; auto-generates a full form (view…
refreshApex (from @salesforce/apex) forces a wired Apex method to re-fetch data and update the cache, so the UI shows fresh results after a change. You must…
@wire may call the method many times (reactive re-provisioning), so Salesforce requires it to be side-effect free and caches the result on the client…
@wire Declarative and reactive: re-runs automatically when $ parameters change. Requires the Apex method to be @AuraEnabled(cacheable=true). Results are…
LMS lets components on the same Lightning page communicate regardless of DOM hierarchy, and works across LWC, Aura and Visualforce. Steps: Create a Lightning…
By default a CustomEvent is non-bubbling and non-composed, so only a direct parent listener on the child element receives it. bubbles: true – the event…
Parent → Child: pass data through @api public properties, or call an @api method via this.template.querySelector('c-child').method(). Child → Parent: dispatch…
@api makes a field or method public so a parent can set it (or call the method). Public properties are reactive but should be treated as read-only inside the…
Hooks: constructor(), connectedCallback(), render(), renderedCallback(), disconnectedCallback(), errorCallback(error, stack). Order when a parent contains a…
LWC is Salesforce's component framework built on modern web standards (ES6+ JavaScript, Web Components, Shadow DOM, custom elements). Key differences from…
Place WITH USERMODE after the WHERE clause and before ORDER BY, then add FOR UPDATE at the end. This enforces the running user's object, field and sharing…
Pending approvals are ProcessInstanceWorkitem records linked to a ProcessInstance. Filter by the actor and pending status. ProcessInstance.TargetObjectId is…
Metadata objects such as ValidationRule and CustomField are queried through the Tooling API (/services/data/vXX.0/tooling/query/?q=...), not the standard…
SOSL searches text across multiple objects and returns a list of lists, one per object in the RETURNING clause. The is a wildcard; use IN NAME FIELDS to limit…
Use a semi-join on CaseComment restricted to comments created by Experience Cloud (community) users, combined with the escalation flag. The UserType values…
SOQL cannot compare two fields in a WHERE clause (e.g. WHERE OwnerId != Account.OwnerId is invalid); filters compare a field with a literal or bind variable…
Traverse from the line item to each related record through relationship names. This is a multi-level child-to-parent query, well within the 5-level limit.
Filter LoginHistory by user, time window and non-success status. Using a datetime bind variable is the reliable way to express "last 24 hours", since date…
Use DISTANCE() with GEOLOCATION() against a geolocation field (e.g. a custom Locationc on Account) in the WHERE clause and optionally ORDER BY. Units are 'mi'…
FORMAT() returns values formatted for the user's locale (dates, datetimes, numbers, currency), which is handy for display without Apex formatting code. The…
In a multi-currency org, convertCurrency() returns the amount converted to the running user's personal currency. You can also filter in a specific currency…
Scheduled jobs live in CronTrigger, with the job name in the related CronJobDetail. Scheduled Apex jobs have CronJobDetail.JobType = '7'.
Query AsyncApexJob for batch jobs that haven't finished and read progress and error counts. Remove the status filter and add ExtendedStatus to investigate…
SetupAuditTrail records setup changes (kept for 180 days). Order by date and limit to 20. To restrict to administrators, filter on the creator's profile, for…
Query the history object with a date literal filter and read who changed the field via CreatedBy. For Opportunities use OpportunityFieldHistory (with…
Each sharing-enabled object has a Share object (e.g. AccountShare) holding the sharing grants. Filter by AccountId and inspect RowCause to see why access…
Filter the child records inside the subquery's own WHERE clause. The parent Accounts are all returned, but each Account's Opportunities list contains only…
Pair a semi-join on Contact with an anti-join on Opportunity in the same WHERE clause. This finds Contact-only Accounts: those with at least one Contact and…
Use COUNTDISTINCT() on the field. It counts unique non-null values. In Apex, the result is an AggregateResult and you read it with (Integer) ar.get('expr0').
Walk up the hierarchy through the self-lookup ParentId using chained Parent relationships (up to 5 levels allowed in one path). Each row shows the Account and…
Separate values with a comma inside INCLUDES to mean OR. This returns Candidates who have Apex or Java (or both) selected.
In INCLUDES, a semicolon inside one string means AND (both values must be selected). This returns Candidates who have both Apex and LWC selected.
Group by the date functions CALENDARYEAR() and CALENDARMONTH(), and alias them so they can be read from the AggregateResult.
Use the CALENDARMONTH() date function in the WHERE clause. In Apex, bind the current month instead of hardcoding it.
Use the THISFISCALQUARTER date literal, which follows the org's fiscal year settings (standard or custom). For calendar quarters use THISQUARTER instead.
SOQL on RecordType costs a query against the governor limit: Schema describe returns record type info without using any SOQL query: Prefer describe calls in…
TYPEOF Who returns different fields depending on whether the related record is a Lead or a Contact. In Apex, check the type with task.Who instanceof Lead and…
WhoId is polymorphic (Lead or Contact). Filter on the related type with Who.Type. This returns only Tasks whose Who is a Lead and excludes those pointing to…
Filter on IsDeleted = true and add ALL ROWS so the query includes Recycle Bin records. In Apex only (not Query Editor) use this syntax. You can pass the…
Files connect to records through ContentDocumentLink (LinkedEntityId is the record Id). Query the link and traverse to the ContentDocument for the file…
QueueSobject links Queues (Group records of Type Queue) to the objects they support. Filter by SobjectType and read the queue through Queue.
Query GroupMember filtered by the group's DeveloperName. UserOrGroupId can be a User or another Group, so filter by user Id prefix (005) if you only want…
Query PermissionSetAssignment and filter on the permission set name, selecting the assigned user details through the Assignee relationship. The API name goes…
From the master Positionc, use a subquery on the junction's child relationship name (JobApplicationsr) and traverse to the Candidate from inside it. This…
The junction object has two master-detail (or lookup) fields, so query from the junction and traverse both parents with r. This is child-to-parent traversal…
Use two semi-joins combined with AND, one against Contact and one against Opportunity. Both subqueries return Account Ids, so only Accounts present in both…
Use LIKE with a prefix and suffix pattern. % matches any number of characters, matches exactly one. Note that LIKE in SOQL is case-insensitive, and a leading…
Compare CreatedDate with the TODAY date literal. It handles the datetime-to-date comparison using the user's time zone.
Combine the LASTNDAYS date literal with a stage filter. Date literals avoid hardcoded dates, so the query stays valid every day.
Group Opportunities by StageName and apply all four aggregate functions. Each row is an AggregateResult; read values with ar.get('total') and so on.
Group Contacts by AccountId and use HAVING to keep only groups with more than five Contacts. To return the Account details too, put this in a semi-join…
Use dot notation from the Contact to its parent Account to read parent fields in the same query, with no join needed. Contacts without an Account still…
Aggregate Contacts grouped by AccountId. In Apex: (Id) ar.get('AccountId') and (Integer) ar.get('total').
Order descending with NULLS LAST (or filter nulls) and limit to 5.
Use ORDER BY ... DESC LIMIT 1 OFFSET N-1. For the 3rd highest salary: In Apex, use a variable: LIMIT 1 OFFSET :n where n = N - 1. OFFSET max is 2,000. For…
Sort descending, skip the first row, and take one. This returns the record with the 2nd highest Amount (ties return the next row, not the next distinct value…
Group by Email and keep groups with more than one row. Each result row is an AggregateResult giving the duplicate email and how many times it appears.
Use an anti-join: WHERE Id NOT IN (SELECT AccountId FROM Contact). Returns Accounts with no Contacts. Note the subquery results are limited by the platform…
Use a semi-join: WHERE Id IN (SELECT AccountId FROM Contact). Only Accounts having at least one Contact are returned. The subquery must select a single…
Use a parent-to-child subquery with the child relationship name. Accounts with no Contacts are still returned (with an empty child list), unlike an inner join.
Custom metadata type records can be read with Apex methods that do not count against SOQL limits: getAll()/getInstance() return cached records but not all…
Standard SOQL on a Big Object (MyDatab) works but only on its index fields, and filters must follow the index order: you can filter on the first field, then…
Aggregate queries still count toward the shared 50,000 total retrieved rows limit: the rows returned as AggregateResult objects (one per group) are counted…
Per transaction: SOQL queries synchronous, 200 asynchronous (batch, future, queueable) ,000 total rows retrieved by SOQL queries SOSL queries; SOSL returns…
Indexed by default: Id, Name, OwnerId, CreatedDate, SystemModstamp, RecordTypeId, lookup and master-detail fields, unique fields, external Id fields (and…
A query is selective when its filter uses an indexed field and returns less than a threshold of the object's records, so the optimizer can use the index…
WITH SECURITYENFORCED: checks FLS/CRUD for fields in the SELECT (and some parents) and throws a System.QueryException if any are inaccessible. It does not…
Apex runs in system mode by default, so enforce user permissions explicitly: WITH USERMODE: enforces the user's object permissions, FLS and sharing rules…
SOQL injection happens when user input is concatenated into a dynamic query, letting an attacker change its logic (e.g. input ' OR Name != '). Prevention: Use…
Dynamic SOQL builds the query as a string at runtime and runs it with Database.query() or Database.queryWithBinds(). Use it when the object, fields, filters…
A SOQL for loop iterates directly over a query result. Salesforce retrieves records in chunks of 200 instead of loading everything into one list, which keeps…
FIELDS() avoids listing every field: FIELDS(STANDARD): all standard fields FIELDS(CUSTOM): all custom fields FIELDS(ALL): all fields Limitations: FIELDS(ALL)…
TYPEOF lets you select different fields depending on the actual object type of a polymorphic relationship (What, Who on Task/Event, Owner, etc.). You can also…
Multi-select picklist values are stored as a semicolon-separated string. Use INCLUDES and EXCLUDES rather than = / LIKE. INCLUDES ('A;B', 'C') = (A and B) or…
ALL ROWS includes deleted records (Recycle Bin) and archived activities in the results. Combine with IsDeleted = true to get only deleted records. Used to…
FOR UPDATE places a pessimistic lock on the returned records for the rest of the transaction. Other transactions attempting to update them wait (up to 10…
FOR VIEW updates the LastViewedDate of the returned records so they show up in the user's Recently Viewed list. FOR REFERENCE updates LastReferencedDate (the…
Date literals are keywords that represent relative date ranges computed at run time, e.g. TODAY, YESTERDAY, LASTNDAYS:30, THISMONTH, NEXTMONTH…
GROUP BY groups rows by field values and gives one row per group. GROUP BY ROLLUP(f1, f2) adds subtotal rows for each level plus a grand total. Use…
WHERE filters individual rows before grouping and cannot use aggregate functions. HAVING filters groups after GROUP BY and works with aggregate functions.
Aggregate queries (with GROUP BY or aggregate functions) return List . Access values with get('alias'); unaliased aggregate columns are named expr0, expr1…
COUNT(): number of rows (no field, returns an integer directly) COUNT(fieldName): count of non-null values COUNTDISTINCT(fieldName): count of unique non-null…
LIMIT n caps the number of rows returned. OFFSET n skips the first n rows, useful for pagination (LIMIT 20 OFFSET 40 = page 3). The maximum OFFSET is 2,000…
Pass the query directly into the Map constructor. Salesforce uses each record's Id as the key. This avoids manual loops, is concise, and counts as one SOQL…
Traditionally a parent-to-child subquery supports only one level (parent with its children, no grandchildren) in Apex. In API v58.0 and later, REST/SOAP…
Child-to-parent traversal can go up to 5 levels deep using dot notation in a single path, e.g. Contact.Account.Parent.Owner.Manager.Name. Separately, a query…
Use a subquery in the SELECT list with the child relationship name (plural for standard objects, r for custom). Results are nested lists: in Apex use…
Use dot notation on the relationship name. Standard lookup: relationship name is the field name without Id, e.g. Account for AccountId. Custom…
SOQL SOSL --------- Purpose Query records of one object (plus related) Text search across many objects and fields Returns List of sObjects List of lists of…
SOQL (Salesforce Object Query Language) queries records from Salesforce objects, similar to SQL SELECT but object-oriented. Differences from SQL: No SELECT…
Use before delete on Task. For Tasks whose WhatId is an Account, allow only the Account Owner or a System Administrator.
Trigger on Feedbackc (after insert, update, delete, undelete), then recompute AVG(RatingScorec) per Product2 with AggregateResult.
Use before insert, before update on the junction object. Compare against existing junction records and others in the same batch using a Contact+Project key. A…
In after undelete, Trigger.new is read-only, so create new SObject instances with the Id (or re-query) and update them. Then notify an admin. Use a custom…
Use after delete, read from Trigger.old, query the Owner emails, and send one batched email call. Call sendEmail once with a list, since single-email calls…
Use before insert, before update so values are saved without extra DML.
Use before update on Case. When Status becomes Closed, check open WorkOrders and Tasks via aggregate/subqueries.
Define a Field Set (e.g. AuditFields) on the object, loop over its fields with Schema describe, compare old and new, and insert AuditLogc records. Admins can…
Use after insert/update (the record needs an Id) and Approval.ProcessSubmitRequest. Ensure the process isn't already pending to avoid ALREADYINPROCESS errors.
Write a before delete trigger on ContentDocument, find its links to Contracts, and block deletion if the Contract is approved (e.g. Status = 'Activated' or a…
Files are linked to records through ContentDocumentLink (the LinkedEntityId is the Case Id). Use after insert and check the Case key prefix (500). You can't…
OpportunityLineItem has no AccountId, so query the parent Opportunities to find Accounts, then aggregate line items per Account.
Two bookings overlap when newStart existingStart for the same Room. Check the database and also bookings in the same batch. For large data, group existing…
Use before insert on Contact. Extract the email domain, match Account Domainc, and create missing Accounts in bulk.
Use triggers on Contact (after insert, update, delete, undelete) and rebuild the string for each affected Account from all its Contacts. Make sure the field…
Use after update on User, detect IsActive true to false, and reassign open Opportunities and owned Accounts to ManagerId. Because User is a setup object, run…
User is a setup object, so assigning a PermissionSet (PermissionSetAssignment) or public group membership (GroupMember) in the same transaction as non-setup…
Use before insert (and optionally before update for reparenting). Count active employees per Department in the DB plus new ones in the batch.
Use after update on Account, detect Inactivec changing to true, and update related Cases and Opportunities in bulk. For large volumes, hand off to Queueable…
Use triggers on Employeec (after insert, update, delete, undelete) and aggregate with MAX/MIN. If the relationship is master-detail, a native Roll-Up Summary…
Use before insert to set the owner to a Queue and after insert to create the Task. Query the Queue once. Case Assignment Rules or Flow can also route to…
Create ProjectShare records with a custom Apex sharing reason. Requires the object's OWD to be Private or Public Read Only. Only Apex Sharing Reasons (not…
Use after update on Account, detect OwnerId changes, then update related open Opportunities and Contacts. Note: updating a mixed List works when records are…
Use before insert on Lead, query Contacts with matching emails, and either block or link via a custom lookup (e.g. ExistingContactc). Standard Duplicate Rules…
Use before update on Lead and detect the conversion (IsConverted going false to true). Block with addError if the requirement isn't met.
Use before delete and addError on Trigger.old records. A simpler declarative route is not available for delete, since validation rules don't run on delete, so…
Use after insert, after update on Contact. When a primary Contact's PrimaryPhonec changes, copy it to the parent Account. Using a Map keyed by AccountId…
Use after insert, after update, find sibling primaries on the same Accounts (excluding the triggering records), uncheck them, and guard against recursion…
Use before insert, before update. Count primaries within the incoming batch and against existing primaries in the database. Adding to the set also catches…
Use before update, define stage order, and bypass for System Administrators. A custom permission or validation rule with PRIORVALUE is a more declarative…
Use after update (and compare old vs new StageName so it fires only on the transition). Create a Task for the Opportunity Owner. For a Contract, insert…
On after update, compare new and old NumberofLocationsc. If it increased, insert the difference; if it decreased, delete that many Contacts.
Use after insert (Ids needed for the parent link) and create N child Contacts per Account. Watch the 10,000 DML row limit if the number is large.
Use before update so the Description is saved without an extra DML.
Use after update on Account, filter accounts whose BillingCity changed, then query and update their Contacts.
Use triggers on Opportunity (after insert, update, delete, undelete), gather parent Account Ids (old and new on update), aggregate Closed Won amounts, and…
Handle all events, collect affected Account Ids (including the old AccountId when reparenting), and recompute with an aggregate query. Accounts with no…
Use before insert, before update. Compare against existing Contacts in the database and within the same batch. In production, prefer Duplicate/Matching Rules…
Use before delete and check for child Contacts with a subquery. Use Trigger.old records for addError in delete triggers. Note that a Contact-Account…
Cover the trigger by inserting/updating/deleting 200+ records in one DML so the bulk path and chunking are exercised, and assert outcomes, not just coverage…
Prefer Queueable over @future in almost all cases: Accepts SObjects and complex types (future allows only primitives) Returns a job Id for monitoring Supports…
UNABLETOLOCKROW occurs when concurrent transactions try to update the same record (often a parent that is locked by child inserts/roll-ups). Mitigations…
Yes, for record sharing. with sharing makes SOQL return only records the running user can access and DML respect the user's edit access to records. without…
Apex triggers run in system mode: object permissions (CRUD) and field-level security of the current user are not enforced, so the trigger can read and write…
Standard SObject triggers fire synchronously on DML, support before and after events and all operations, run in the user's transaction. Platform Event…
Mixed DML error (MIXEDDMLOPERATION) occurs when setup objects (User, Group, GroupMember, PermissionSetAssignment, UserRole, etc.) and non-setup objects…
insert list; (all-or-none): if any record fails or an uncaught exception occurs, the whole DML rolls back and a DmlException is thrown. Database.insert(list…
Triggers always process records in chunks of up to 200, so 250 records means two trigger invocations (200 + 50). In a single Apex transaction (e.g. insert…
Governor limits apply per transaction, and all triggers, flows and classes firing in that transaction share them. Key synchronous limits: 100 SOQL queries…
Create a config record with a checkbox such as BypassAccountTriggerc, and check it at the start of the trigger/handler. Hierarchy Custom Setting: value can be…
Trigger.size returns the number of records in the current invocation and works in every event. Trigger.new.size() fails with a NullPointerException in delete…
Keep a static Set in the handler. Each time the trigger runs, filter Trigger.new to records whose Id is not yet in the set, process only those, and add them…
The trigger contains no logic; it only routes events to a handler class with methods like beforeInsert, afterUpdate. Benefits: reusable and unit-testable…
Salesforce does not guarantee the execution order of multiple triggers on the same object and event. With several triggers, behavior becomes unpredictable and…
Bulkifying means writing the trigger to handle up to 200 records per invocation (and more through chained chunks) efficiently, without hitting governor…
Triggers process records in chunks of 200. A static variable lives for the whole transaction, so after the first chunk sets hasRun = true, chunks 2, 3... in…
A recursive trigger is one whose logic performs DML that causes the same trigger (or another trigger that updates back) to fire again, repeatedly. Example: an…
@future(callout=true): static void method, only primitive/collection-of-primitive parameters (pass Ids and re-query), no chaining, cannot be called from…
No. Salesforce does not allow synchronous callouts from a trigger: the transaction holds database locks while uncommitted, and a slow external call would keep…
addError(String msg) marks a record (or a field) as failed with a custom message and blocks that record's save. Record level: acc.addError('Cannot save')…
After undelete triggers run when records are restored from the Recycle Bin. Use them to rebuild related data, e.g. recalculate roll-ups, restore related child…
Trigger.operationType returns a System.TriggerOperation enum value: BEFOREINSERT, BEFOREUPDATE, BEFOREDELETE, AFTERINSERT, AFTERUPDATE, AFTERDELETE…
Simplified order for a record save: Load original record (or initialize for insert) Overwrite with new values; run system validation Run before-save…
Yes, via Database.executeBatch(), but with care: Limits: only 5 batch jobs can be queued or active at once (extra jobs go to the Flex Queue, up to 100…
Trigger.old and Trigger.oldMap are always read-only. Attempting to change a field on them throws a runtime error: Record is read-only. Use them only for…
In after triggers the records have already been written to the database (not yet committed), so the save operation is complete. Modifying Trigger.new fields…
You don't need to, and you shouldn't. In a before trigger, changes you make directly to fields of Trigger.new records are automatically saved as part of the…
Trigger.newMap is a Map . In a before insert trigger, the records have not been saved yet, so no Id has been assigned. A map keyed by Id cannot be built, so…
Trigger.old and Trigger.oldMap are available in before update, after update, before delete, and after delete triggers. They are not available in insert or…
Trigger.new: before insert, after insert, before update, after update, after undelete. Trigger.newMap: before update, after insert, after update, after…
Trigger.new is a list of the new versions of records (the values being saved). Trigger.old is a list of the old versions (values before the change). Insert…
Trigger.isInsert / isUpdate / isDelete / isUndelete: true if the trigger fired for that DML event. Trigger.isBefore / isAfter: true for the before or after…
Before triggers run before the record is saved to the database. Use them to validate or modify field values on the records in Trigger.new without an extra…
An Apex Trigger is Apex code that runs automatically before or after DML events (insert, update, delete, undelete) on an object. Use a trigger over Flow when…