Piotr Gajek

Piotr Gajek

Senior Salesforce Developer

Technical Architect and Full-stack Salesforce Developer. He started his adventure with Salesforce in 2017. Clean code lover and thoughtful solutions enthusiast.

Apex
Framework
Learning
SOQL
LWC
Code Review
Flow
Integration
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.

Beyond If Statements: Ways to avoid IFs – Polish Dreamin’ 24
March 21, 2024

Beyond If Statements: Ways to avoid IFs – Polish Dreamin’ 24

Code is a representation of business requirements. Business requirements vary for each company, but most of them have an IF-THEN structure. It’s quite common to see IF statements in our code. However, an increasing number of IFs can make our code hard to read and understand.

Advanced Promises in LWC
February 13, 2024

Advanced Promises in LWC

How and when to use Promise.all, allSettled, any, and race in LWC? Check out our latest post about advanced promises!

Salesforce Naming Convention
January 5, 2024

Salesforce Naming Convention

In programming, naming conventions are crucial for clarity and collaboration. Choose intention-revealing names, avoid ambiguity, and maintain consistency to enhance code readability and convey meaningful context to fellow developers.

Format your code with formatting tool
December 10, 2023

Format your code with formatting tool

Code formatting across the project should be consistent.Choose a formatting tool, configure it, and stick to it no matter what.

Do not use Ternary operator to return Boolean
December 8, 2023

Do not use Ternary operator to return Boolean

Do not use Ternary operator, since comperation statement returns Boolean.

Refs vs QuerySelector in LWC
December 1, 2023

Refs vs QuerySelector in LWC

We have two ways to query DOM elements in LWC: refs and querySelector.Which one is better? Let’s cover it in this post.

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!

Salesforce Flow Considerations
August 29, 2023

Salesforce Flow Considerations

Flows are an amazing automation tool that offers you a lot of possibilities. However it also have a lot of limitations you need to be aware of.

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.

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.

Then vs Async Await in LWC
February 13, 2023

Then vs Async Await in LWC

then and await are key concepts in asynchronous JavaScript programming. Understand the differences between them and check the best practices.

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.

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.

Promises in LWC
September 4, 2022

Promises in LWC

What is a Promise? How does it work in LWC? What is the difference between then/catch and async/await? Let’s check.

Salesforce SPA using LWC
August 27, 2022

Salesforce SPA using LWC

Create a powerful Single Page Application using Lightning Web Components. The perfect approach for internal and external Salesforce apps.

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!

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.

Custom Logout in Experience Cloud
August 11, 2022

Custom Logout in Experience Cloud

Create your own logout UI with Aura/LWC and invoke a standard logout event.

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!

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.

Custom Types in LWC Lightning Datatable
August 5, 2022

Custom Types in LWC Lightning Datatable

Create a custom type cell for your Lightning Web Component lightning-datatable.

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.

How to get URL parameters in LWC?
July 15, 2022

How to get URL parameters in LWC?

Check an easy way to get all URL parameters in LWC and CurrentPageReference from the lightning/navigation module!

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?”

Showing 25 of 25 results