---
title: "Apex"
url: "https://blog.beyondthecloud.dev/category/apex"
---

# Apex

Master Apex programming with in-depth articles on SOQL, triggers, classes, and more. Learn how to create scalable and maintainable Salesforce applications.

- [Trigger Lib](https://blog.beyondthecloud.dev/blog/trigger-lib.md): Trigger Lib is an Apex trigger framework that helps you stay within Salesforce limits. It runs queries and DML in bulk for you, and its guardrails stop developers and AI agents from running SOQL or DML for every record. (2026-10-26)
- [Framework-Driven Development](https://blog.beyondthecloud.dev/blog/framework-driven-development.md): Framework-Driven Development can be extremely useful in the AI era, when we generate code rather than write it by hand. It has a few assumptions: frameworks should be idiot-proof (AI-proof), generated code should be optimized against limits, and framework design should enforce code quality. (2026-09-28)
- [Apex Character Limit – What to do?](https://blog.beyondthecloud.dev/blog/apex-character-limit.md): Everything about the Salesforce Apex character limit: how characters are counted, what is excluded, what actually breaks at 100%, how to get the limit increased, and a formatting change that cut 14.75% from a single class. (2026-08-07)
- [Beyond Best Practices – Why Following the Rules Can Break Your Code? – Czech Dreamin’ 26, Polish Dreamin’ 26](https://blog.beyondthecloud.dev/blog/why-following-the-rules-can-break-your-code.md): Following best practices blindly can make code worse. This post shows that rules are context-dependent – what improves readability, maintainability, or architecture in one case may add unnecessary complexity in another. Understand the trade-offs before applying any rule. (2026-05-28)
- [Apex Security and Sharing](https://blog.beyondthecloud.dev/blog/apex-security-and-sharing.md): A practical guide to Salesforce security in Apex: how FLS and sharing really work, when to use USER_MODE, WITH SECURITY_ENFORCED, or stripInaccessible, and how class sharing keywords affect record access. (2026-03-08)
- [How to implement marker interfaces in Apex?](https://blog.beyondthecloud.dev/blog/how-to-implement-marker-interfaces-in-apex.md): Marker interfaces are a familiar concept in Java but rarely discussed in Apex. This article introduces how they work, and how you can apply the same pattern in your own code. Through a practical example involving payment methods and optional confirmation modes, it demonstrates how marker interfaces let you extend behavior without modifying existing logic, illustrating a clean, compositional approach to flexibility in Apex. (2025-11-05)
- [Salesforce Code Review & Handover Bingo: Common Mistakes and Red Flags 🚩](https://blog.beyondthecloud.dev/blog/salesforce-code-review-handover-bingo-common-mistakes-and-red-flags.md): Whenever a project is handed over to you, some sort of review or state-of-the-art check should be done. We can make it a more fun, team activity and fill the bingo card during the investigation! Image done using Bingo Baker. To make this bingo play have some fun-factor, the mentioned concepts have different severity –... (2025-07-25)
- [Apex Queueable Processing Framework](https://blog.beyondthecloud.dev/blog/apex-queueable-processing-framework.md): Struggling with “Too many queueable jobs” errors in Salesforce? This guide introduces AsyncLib, a framework that manages Apex asynchronous processing with queueable chains. It helps overcome strict governor limits by chaining jobs using Salesforce’s Finalizer interface. AsyncLib simplifies async execution, error handling, and scheduling for Queueable, Batchable, and Schedulable jobs—no more complex workarounds or manual tracking. (2025-07-02)
- [Importance of Having a Single Flow Trigger](https://blog.beyondthecloud.dev/blog/importance-of-having-a-single-flow-trigger.md): Splitting trigger logic into multiple flows seams tempting, but it comes with a big disadvantage. Check how to avoid this mistake and adjust your strategy based on your project. (2025-05-13)
- [Generic Code: What It Is and What It Is Not? – Polish Dreamin’ 25](https://blog.beyondthecloud.dev/blog/generic-code-in-salesforce.md): Learn how to build truly generic code that’s easy to adopt, flexible, and avoids duplication. Uncover key principles, patterns, and real-world tips for writing maintainable code that focuses on the core problem and fosters effective collaboration. (2025-03-28)
- [List View API Updates in Spring’25 Release](https://blog.beyondthecloud.dev/blog/list-view-api-updates-in-spring25-release.md): Explore the power of Salesforce’s Spring’25 update with the enhanced lightning/uiListsAPI. This post dives into the expanded capabilities of List Views, highlighting its newfound ability to perform full CRUD operations. Learn about the various functions available in the adapter and discover practical examples of how to implement them in your Salesforce environment. Uncover how this update simplifies the development process, reduces maintenance of custom components, and optimizes your use of Salesforce platform features. (2025-03-12)
- [Apex Object Oriented Programming – Hands-On](https://blog.beyondthecloud.dev/blog/apex-object-oriented-programming.md): Have you ever had difficulties with refactoring existing code? Ever wondered if your code is really open for extensions and closed for modifications? Try this Hands-On exercises to find out how to make you code clean and reusable. (2025-03-06)
- [Salesforce Mock in Apex Tests](https://blog.beyondthecloud.dev/blog/salesforce-mock-in-apex-tests.md): Executing tests takes forever? You don’t have integrations in development environments? Your tests give different results depending on the instance? No worries, check if you can benefit from Mocking or Stubbing in your tests and more! (2025-02-18)
- [Why do you need a Apex Selector Layer?](https://blog.beyondthecloud.dev/blog/why-do-you-need-selector-layer.md): A Selector Layer centralizes SOQL queries, ensuring consistency, FLS, sharing rule enforcement, and easier testing with mocking. It avoids duplication, supports caching, and simplifies updates, making your code cleaner, scalable, and more maintainable. (2025-01-16)
- [Future vs Queueable](https://blog.beyondthecloud.dev/blog/future-vs-queueable.md): In Apex, for a long time, a go to Asynchronous method was @Future annotation. Meanwhile, Queueable interface got built up with many useful tools to help developers. Is Queueable better now? Where does it stand in comparison to the @Future? Are there use cases when @Future is still valid? This guide will help you learn everything you need to know about using Asynchronous technologies. (2024-01-26)
- [LWC and Apex communication – the Ultimate Guide](https://blog.beyondthecloud.dev/blog/lwc-and-apex-communication-the-ultimate-guide.md): See the ultimate guide for LWC and Apex connectivity solutions – how to get data, how to use wire and how to refresh cache – all in one place! (2024-01-15)
- [Type Casting in Apex](https://blog.beyondthecloud.dev/blog/type-casting-in-apex.md): How Apex type casting works? How to cast List in Apex? How to cast Apex Map? Answers to these questions and much more can be found in this post! (2023-10-15)
- [Client Credentials custom Auth. Provider](https://blog.beyondthecloud.dev/blog/client-credentials-custom-auth-provider.md): Do you need to use Client Credentials flow? Or you are just wondering how to create one? Check this step-by-step guide with example on building custom Auth. Provider for Client Credentials. Contains a real life example using PayU API. (2023-09-29)
- [Apex CPU Benchmarking](https://blog.beyondthecloud.dev/blog/apex-cpu-benchmarking.md): Have you ever encountered the infamous Apex CPU time limit exception? Check out this post to see how to efficiently measure the performance of your Apex code. (2023-07-28)
- [SOQL Lib](https://blog.beyondthecloud.dev/blog/soql-lib.md): The SOQL Lib provides functional constructs for SOQL queries in Apex. Use the SOQL Lib as a Selector Layer on your project. (2023-07-10)
- [Static in Apex Salesforce](https://blog.beyondthecloud.dev/blog/static-in-apex.md): Static variables are a key aspect of apex programming that can significantly enhance code functionality and efficiency. (2023-07-02)
- [First Look on Code Builder](https://blog.beyondthecloud.dev/blog/code-builder-overview.md): Code Builder is a new IDE created by Salesforce. It is meant to be run entirely in the browser, and comes with the Salesforce Extension pre-installed. Let see how reality looks like! (2023-05-31)
- [Apex Triggers Introduction](https://blog.beyondthecloud.dev/blog/apex-triggers.md): Preview and introduction to Apex Triggers. Learn how to define one and its capabilities. (2023-02-05)
- [Having troubles with Navigation Menus after Spring ’23 update?](https://blog.beyondthecloud.dev/blog/having-troubles-with-navigation-menus-after-spring-23-update.md): Having troubles with Navigation Menus after Spring ’23 update? Check out our post for a quick fix and solution! (2023-01-17)
- [System.Assert Class vs System.assertEquals methods](https://blog.beyondthecloud.dev/blog/system-assert-class-vs-system-assert-equals-methods.md): Salesforce released new Assert methods in Winter 23. Are they better or worse than existing assert methods? Should we replace the old ones with new methods? Check this article to find out! (2022-11-07)
- [Publishing Visual Studio Code Extension](https://blog.beyondthecloud.dev/blog/visual-studio-code-extension.md): How to make and share a VS Code extension? It is easier than you think. Follow these steps to add a new extension to the Marketplace. (2022-11-01)
- [How to check if list is empty in Apex](https://blog.beyondthecloud.dev/blog/how-to-check-if-list-is-empty-in-apex.md): Do you know what is the best way to check if the list is empty in Apex? Find out how to do it like a pro! (2022-10-14)
- [Country State Dependent Picklist in Apex](https://blog.beyondthecloud.dev/blog/country-state-dependent-picklist-in-apex.md): How to get a country-state dependent picklist in Apex? Check various methods for your frontend and backend solution. (2022-10-09)
- [Salesforce To Google REST API Integration](https://blog.beyondthecloud.dev/blog/salesforce-to-google-rest-api-integration.md): Integrate your Salesforce environment with Google by REST API. Check the completed integration guide. (2022-09-20)
- [Apex Test Data Factory](https://blog.beyondthecloud.dev/blog/apex-test-data-factory.md): Use Apex Test Data Factory to create Test Data for your Unit Tests. Don’t struggle with data creation anymore! (2022-08-21)
- [Abstract, Virtual, Interface in Apex](https://blog.beyondthecloud.dev/blog/abstract-virtual-interface-in-apex.md): Find the differences between Abstract, Virtual, and Interface implementation in Apex code. Understand the purpose and make your code better. (2022-08-14)
- [Constants in Apex](https://blog.beyondthecloud.dev/blog/constants-in-apex.md): With Constants framework you will be able to keep final values in fancy way. Check how to use it! (2022-08-10)
- [Apex Debugging](https://blog.beyondthecloud.dev/blog/apex-debugging.md): Salesforce provides sophisticated methods to debug your apex code. Check how to use all of them and resolve issues more efficiently. (2022-08-07)
- [Salesforce Platform Cache](https://blog.beyondthecloud.dev/blog/salesforce-platform-cache.md): Platform Cache is salesforce feature, which allows you improve you app performance and improve user experience. (2022-07-16)
- [Detect “Log in to Community as User” in Apex](https://blog.beyondthecloud.dev/blog/detect-log-in-to-community-as-user.md): The question is “How we can detect that current user is logged in to the community on behalf?” (2022-07-12)
