How to get key prefix of an object using Apex in Salesforce
GOAL SOLUTION GET OBJECT API NAME BASED ON RECORD ID GET OBJECT KEY PREFIX BASED ON OBJECT API NAME
GOAL SOLUTION GET OBJECT API NAME BASED ON RECORD ID GET OBJECT KEY PREFIX BASED ON OBJECT API NAME
The System.TriggerOperation enum has the following values: The new Trigger context variable Trigger.operationType will return System.TriggerOperation enum during trigger context. If you combine this new context variable and the new Apex switch feature, trigger code becomes much easy to implement and understand. An Example of Using Switch and Enum in Triggers
Apex Programming Unveiling the Power of Salesforce Development Apex serves as the object oriented programming language utilized by the Salesforce platform, empowering developers to execute transactions and control statements on Salesforce-associated servers. With a syntax closely resembling Java, Apex provides a familiar programming framework for Salesforce development. Notable Aspects of Apex Programming Key Characteristics of …
Comprehensive Guide to Apex Programming – Everything You Need to Know Read More »
INTERNAL USER EXTERNAL USER OR COMMUNITY USER
COMPONENTS On Standard Object – Account, there are following fields Total Revenue (Total_Revenue__c) (Number (16,2)) On standard Object Opportunity, which is child of Account Object, there are following fields StageName: Having value “Closed Won” Type: Having values Renewal, Upsell, New Business RenewalAmount__c : (Number (16,2)) UpsellAmount__c : (Number (16,2)) NewBusiness__c : (Number (16,2)) REQUIREMENT For …
Apex Trigger Practice (5) – Rollup Amount from Opportunity to Account Read More »
Target Record: A Case record with Status =”New” in Database. There is trigger which updates the value of Status =”Working” in before update event. There is workflow too which updates to Status to “Escalated”. So, we are going to analyze how system behaves in these scenarios: Lets play as below: P.S: In all events, old …
Execution of Trigger and Workflow – A practical Analysis Read More »