Lightning SFDC, SFDC Customization

Lightning Component On Public Website (ltng:allowguestaccess)

In latest release salesforce came up with a powerful interface ie ltng:allowguestaccess which allows you to expose your lightning component or Lightning web component on public websites ie force.com sites or any community with public page which doesn't require user authentication. Lets take an example of a simple lightning component which we will expose to… Continue reading Lightning Component On Public Website (ltng:allowguestaccess)

Integration

Difference between SOAP and REST APIs in Salesforce

In the world of Salesforce development, the choice between SOAP (Simple Object Access Protocol) and REST (Representational State Transfer) APIs is a crucial one. These two technologies serve as the backbone for integrating Salesforce with other systems, facilitating seamless data exchange and communication. However, understanding the nuances and disparities between SOAP and REST APIs is… Continue reading Difference between SOAP and REST APIs in Salesforce

Coding scenario

Coding Scenario 17 — Quote and QLI

Question :- Write a code to implement following requirement. When an opportunity is created/updated with status as prospect then create a quote and auto assign product to the quote with predefined quantity. OpportunityTrigger :-trigger opportunityDemotrigger on Opportunity (before insert, after insert, after update) { if(trigger.isafter){ if(trigger.isinsert){ OpportunityTriggerHandlerUpdated.opportunityInserthandler(trigger.new, trigger.newmap); } if(trigger.isupdate){ OpportunityTriggerHandlerUpdated.opportunityUpsethandler(trigger.new, trigger.oldmap); } } if(trigger.isbefore){… Continue reading Coding Scenario 17 — Quote and QLI

Lightning SFDC

Spring 24 – Make Callouts After Rolling Back DML

As part of spring 24 release in apex, Roll back all uncommitted DML by using a savepoint. Then use the new Database.releaseSavepoint method to explicitlyrelease savepoints before making a desired callout. Previously, callouts after creating savepoints resulted in a CalloutException regardless of whether there was uncommitted DML or the changes were rolled back to a… Continue reading Spring 24 – Make Callouts After Rolling Back DML

triggers

Trigger Framework In Salesforce

A trigger framework helps organize and streamline the logic in your triggers, making them more modular and maintainable. Here's a basic example of a trigger framework in Salesforce.1. Create a Trigger Handler Interface: public interface TriggerHandler { void handle(); } 2. Implement Trigger Handlers: Create a class for each object's trigger logic that implements the… Continue reading Trigger Framework In Salesforce