Retrieving Data from Apex in LWC
How to call Apex from Lightning Web Components — imperative Apex calls, the wire service, refreshApex, sending SObject data from LWC to Apex, and proper exception handling for Apex calls.
36 posts tagged with "apex"
How to call Apex from Lightning Web Components — imperative Apex calls, the wire service, refreshApex, sending SObject data from LWC to Apex, and proper exception handling for Apex calls.
A guide to the most valuable open source libraries in the Salesforce ecosystem — Apex Common, Apex Mocks, Universal Mocker, Nebula Logger, Apex Rollup, open source trigger frameworks, and a hands-on project using Apex Rollup.
A complete guide to CI/CD for Salesforce — what CI/CD is, what to include in your pipeline, popular tools, an introduction to YAML and shell scripting, and a hands-on project building a pipeline with GitHub Actions.
A complete guide to Unlocked Packages — what they are, how to create them, how to version and update them, and a hands-on project deploying an unlocked package to a scratch org.
Everything you need to know about Scratch Orgs — what they are, creating them from org shapes, working with unlocked packages, and integrating scratch orgs into your development workflow.
A comprehensive guide to the Salesforce CLI — what it is, deploying metadata, importing data, creating scratch orgs and sandboxes, essential commands, and the most useful plugins.
Advanced Apex testing — true unit tests without database access, the Apex Mocks library, mocking selectors, services, and domains, and a complete project testing an fflib application.
The Gang of Four design patterns applied to Salesforce Apex — Singleton, Builder, Factory, Abstract Factory, Prototype, Facade, Composite, Adapter, Bridge, Decorator, Flyweight, Proxy, Observer, Template Method, Strategy, Chain of Responsibility, Command, and more.
A practical guide to the Apex Common Library — installing fflib, implementing the selector layer, domain layer, and service layer with the enterprise patterns framework.
Applying the five SOLID principles to Salesforce Apex — Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion, with practical Salesforce examples.
Understanding and implementing separation of concerns in Apex — the service layer, domain layer, selector layer, and how to structure enterprise Apex code for maintainability and testability.
Mastering OOP in Apex — abstraction, encapsulation, inheritance, polymorphism, and composition. With practical Salesforce examples and a project using polymorphism for runtime behavior changes.
A comprehensive guide to every major Salesforce API — REST, SOAP, Bulk, Tooling, Metadata, UI, Streaming, Reports & Dashboards, and Models API. When to use each, how they work, and a hands-on project.
Building AI agents on Salesforce — setting up the Agentforce VS Code extension, configuring agents, creating custom Apex agent actions, and building an agent that uses Apex to make decisions.
Writing clean, maintainable Apex — why methods should be small and do one thing, naming conventions that communicate intent, when to comment, and using PMD for static analysis.
Getting started with Git and GitHub for Salesforce development — installing Git, setting up local and remote repos, essential commands, branching strategies, and best practices.
A practical guide to Salesforce governor limits — SOQL, DML, CPU timeout, and integration limits. What they are, why they exist, how to hit them, and proven patterns to avoid them.
Understanding how Salesforce processes a record save — the complete order of execution from initial validation through triggers, flows, assignment rules, and DML statements. With practical examples showing how the order affects your code.
A hands-on project building a scheduled batch process — creating a service class, batch class, scheduled class, and comprehensive test classes for a real-world data update scenario.
A comprehensive guide to asynchronous Apex — batch classes, scheduled classes, queueable classes, future methods, and platform events. When to use each, how to set them up, and best practices.
A hands-on SOAP integration project — importing WSDLs, testing with SOAP UI, building a service class, and writing comprehensive test classes with WebServiceMock.
Build a production-quality REST integration between Salesforce and GitHub — from Named Credentials and Postman testing to wrapper classes, a service layer, and a complete test class with HttpCalloutMock.
A complete guide to Salesforce integrations — REST, SOAP, Named Credentials, wrapper classes, JSON2Apex, HTTP callouts, WSDL-generated classes, and writing test classes with mock interfaces.
Boost Salesforce performance with the Platform Cache — org cache vs session cache, partition setup, Cache.Org and Cache.Session classes, the CacheBuilder interface, TTL strategies, eviction policies, and testing patterns.
Learn how to build invocable Apex actions for Flows — @InvocableMethod, @InvocableVariable, input/output wrapper classes, bulkification, supported data types, error handling, testing, and a complete hands-on project.
A complete walkthrough of building a field mapping application in Apex — service classes that read mapping configuration from Custom Metadata, a controller that coordinates the logic, a Visualforce page to run it, and full test coverage.
Using Salesforce platform features in Apex — static resources for files, custom metadata types for app configuration, custom settings for org/user preferences, and custom labels for multilingual support.
Writing effective Apex test classes — minimum requirements, test setup, assertions, data factories, integration vs unit tests, Test.startTest/stopTest, and building a comprehensive test suite.
Everything about Apex triggers — trigger context variables, trigger handlers, bulkification, the order of execution, and best practices for writing production-grade triggers.
Enforcing security in Apex code — with/without/inherited sharing, object and field-level security, SOQL injection prevention, Apex managed sharing, and building security-aware applications.
Master the art of debugging Apex — debug logs in the Developer Console and VS Code, System.debug, code chunking, the Log Panel for identifying bottlenecks, and a hands-on debugging project.
Understanding type casting in Apex — implicit and explicit casting, upcasting and downcasting sObjects, the instanceof operator, and practical patterns for working with generic types.
Understanding error handling in Apex — exception types, try-catch-finally blocks, creating and throwing custom exceptions, and building resilient Salesforce applications.
Everything you need to know about querying data in Salesforce — SOQL SELECT, WHERE, ORDER BY, LIMIT, IN clauses, SOSL FIND and RETURNING, query limits, indexing, the Query Plan tool, and using queries in Apex.
Master control flow in Apex — if/else statements, switch statements, for loops, enhanced for loops, while and do-while loops, and best practices for iterating over collections efficiently.
Your entry point into Salesforce development — what Apex is, setting up your IDE, classes, variables, data types, methods, constructors, operators, collections, access modifiers, and the static keyword.