Open in app

Sign in

Write

Sign in

Deep Banerjee

202 Followers

Home

Lists

About

Pinned

Memento Design Pattern in Apex Salesforce

The memento pattern is a behavioral design pattern used to restore the state of an object to a previous state. The memento pattern is implemented with three objects: the originator, a caretaker and a memento. The originator is some object that has an internal state. The caretaker is going to…

Salesforce Apex

3 min read

Memento Design Pattern in Apex Salesforce
Memento Design Pattern in Apex Salesforce
Salesforce Apex

3 min read


Pinned

Recursion Handling … Recursion Handling…

in Salesforce platform Let’s Consider a scenario, where a trigger will fire in after update context if the old value does not match the new value and then makes a callout. And, you also have a workflow that updates the same object when it’s entry criteria is satisfied for the same update event. Interestingly, in the Salesforce platform, Workflow field updates will cause the trigger to re-execute AND, the value of Trigger.old …

Salesforce

4 min read

Recursion Handling … Recursion Handling…
Recursion Handling … Recursion Handling…
Salesforce

4 min read


Pinned

Development with Very Large SOQL Queries

If you’re doing development in an org with a Large Data Volume then you must be careful with SOQL For best performance, SOQL queries must be selective, particularly for queries inside triggers. To avoid long execution times, the system can terminate nonselective SOQL queries. Developers receive an error message when…

Salesforce

6 min read

Development with Very Large SOQL Queries
Development with Very Large SOQL Queries
Salesforce

6 min read


Pinned

Event-Driven Architecture: Design Patterns — Part 02

This post is a continuation of my previous post, if you haven’t read that, I’ll suggest you read that first. Claim Check Pattern: With the claim check pattern, instead of the complete representation of the transformed data being passed through the event bus, the message body is stored independently, while a message header…

Salesforce

5 min read

Event-DrivenArchitecture: Design Patterns — Part 02
Event-DrivenArchitecture: Design Patterns — Part 02
Salesforce

5 min read


Jul 15

DSA using Apex (Salesforce)-03/100

let’s solve : Four Number sum Q:Write a function that takes in non-empty List of distinct Integers and an integer representing a target sum. The function should find all the quadruplets that sum up to the target sum and return a list of all these quadruplets in no particular order…

Salesforce

3 min read

Salesforce

3 min read


Jul 10

DSA using Apex (Salesforce)- 02/100

solving problems using apex inside salesforce! Q: Given an array of integers nums and an integer target, return the two numbers such that they add up to target. You may assume that each input would have exactly one solution, and you may not use the same element twice. You can…

Salesforce

1 min read

Salesforce

1 min read


Jun 28

DSA using Apex (Salesforce)- 01/100

Leetcode Q.20: Valid Parentheses This will be an ongoing DSA series using Apex inside Salesforce Question for today: Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid. An input string is valid if: Open brackets must be…

Salesforce

2 min read

DSA using Apex (Salesforce)- 01/100
DSA using Apex (Salesforce)- 01/100
Salesforce

2 min read


Apr 7

BMI Calculator using LWC

project-based learning series: Part 2 In this series of Project-based learning, today we’re going to see how we can build a responsive app using LWC. Disclaimer: “ This is not a production ready code , as there’s room for improvement . …

Salesforce

6 min read

BMI Calculator using LWC
BMI Calculator using LWC
Salesforce

6 min read


Jan 9

LWC: Sorting based on an object property

Have you ever come across a situation where you were required to perform sorting dynamically based on the property of an object, or from the JSON data? import { LightningElement, track } from 'lwc'; export default class MyComponent extends LightningElement { @track productAttributes = {…

Salesforce

2 min read

LWC: Sorting based on an object property
LWC: Sorting based on an object property
Salesforce

2 min read


Jan 8

LWC: Array Methods (Part 3/5)

Array.prototype.some() The some() method tests whether at least one element in the array passes the test implemented by the provided function. It returns true if, in the array, it finds an element for which the provided function returns true; otherwise it returns false. It doesn't modify the array. const array1 =…

Salesforce

2 min read

Salesforce

2 min read

Deep Banerjee

Deep Banerjee

202 Followers

Salesforce Specialist

Following
  • Michael Bogan

    Michael Bogan

  • Salesforce Architects

    Salesforce Architects

  • Zayne Turner

    Zayne Turner

  • Techletters

    Techletters

  • Aykut Parlak

    Aykut Parlak

See all (38)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams