APEX

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

Why do you need a Selector Layer?

Why do you need a Selector Layer?

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.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Future vs Queueable
January 26, 2024

Future vs Queueable

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.

LWC and Apex communication – the Ultimate Guide
January 15, 2024

LWC and Apex communication – the Ultimate Guide

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!

Krzysztof Pintscher
Krzysztof Pintscher

Salesforce Frontend Preacher

Type Casting in Apex
October 15, 2023

Type Casting in Apex

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!

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Client Credentials custom Auth. Provider
September 29, 2023

Client Credentials custom Auth. Provider

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.

Apex CPU Benchmarking
July 28, 2023

Apex CPU Benchmarking

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.

Adam Osiecki
Adam Osiecki

Freelance Salesforce Developer

SOQL Lib

SOQL Lib

The SOQL Lib provides functional constructs for SOQL queries in Apex. Use the SOQL Lib as a Selector Layer on your project.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Static in Apex Salesforce
July 2, 2023

Static in Apex Salesforce

Static variables are a key aspect of apex programming that can significantly enhance code functionality and efficiency.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

First Look on Code Builder
May 31, 2023

First Look on Code Builder

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!

Apex Triggers Introduction
February 5, 2023

Apex Triggers Introduction

Preview and introduction to Apex Triggers. Learn how to define one and its capabilities.

Having troubles with Navigation Menus after Spring ’23 update?
January 17, 2023

Having troubles with Navigation Menus after Spring ’23 update?

Having troubles with Navigation Menus after Spring ’23 update? Check out our post for a quick fix and solution!

Krzysztof Pintscher
Krzysztof Pintscher

Salesforce Frontend Preacher

System.Assert Class vs System.assertEquals methods
November 7, 2022

System.Assert Class vs System.assertEquals methods

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!

Adam Osiecki
Adam Osiecki

Freelance Salesforce Developer

Publishing Visual Studio Code Extension
November 1, 2022

Publishing Visual Studio Code Extension

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.

How to check if list is empty in Apex
October 14, 2022

How to check if list is empty in Apex

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!

Adam Osiecki
Adam Osiecki

Freelance Salesforce Developer

Country State Dependent Picklist in Apex
October 9, 2022

Country State Dependent Picklist in Apex

How to get a country-state dependent picklist in Apex? Check various methods for your frontend and backend solution.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Salesforce To Google REST API Integration
September 20, 2022

Salesforce To Google REST API Integration

Integrate your Salesforce environment with Google by REST API. Check the completed integration guide.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Apex Test Data Factory
August 21, 2022

Apex Test Data Factory

Use Apex Test Data Factory to create Test Data for your Unit Tests. Don’t struggle with data creation anymore!

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Abstract, Virtual, Interface in Apex
August 14, 2022

Abstract, Virtual, Interface in Apex

Find the differences between Abstract, Virtual, and Interface implementation in Apex code. Understand the purpose and make your code better.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Constants in Apex
August 10, 2022

Constants in Apex

With Constants framework you will be able to keep final values in fancy way. Check how to use it!

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Apex Debugging
August 7, 2022

Apex Debugging

Salesforce provides sophisticated methods to debug your apex code. Check how to use all of them and resolve issues more efficiently.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Salesforce Platform Cache
July 16, 2022

Salesforce Platform Cache

Platform Cache is salesforce feature, which allows you improve you app performance and improve user experience.

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Detect “Log in to Community as User” in Apex
July 12, 2022

Detect “Log in to Community as User” in Apex

The question is “How we can detect that current user is logged in to the community on behalf?”

Piotr Gajek
Piotr Gajek

Senior Salesforce Developer

Showing 22 of 22 results