Why Before Trigger should not have DML for other objects
if you update or delete a record in its before trigger, or delete a record in its after trigger, you will receive a runtime error. This includes both direct and indirect operations. For example, if you update account A, and the before update trigger of account A inserts contact B, and the after insert trigger of contact B queries for account A and …
Why Before Trigger should not have DML for other objects Read More »
Apex Trigger Practice (3) – Trigger on Attachments to count the number of attachments
Question Hints: Account is standard object and attachment is child object. Requirement: We need to create an Apex Trigger on Attachments to count the number of attachments on the object – let’s take Account – and store in number field “Number of attachments”. Trigger is considering all the possible scenarios in this – after insert, after …
Apex Trigger Practice (3) – Trigger on Attachments to count the number of attachments Read More »
Apex Trigger Practice (2) – update the Contact based on Contact Role
Question Related Components: Requirement: Implementation Verification: Upload your code in Github and provide the link of public repo in comment below, it will be reviewed based on availability and feedback will be shared. P.S: Be honest, watch the clock to check your efficiency. Happy coding.
Apex Trigger Practice (1) – Update Account Open Case Status
Question Hints: Account is parent object of Case. Case’s status field is categorized into two types – Open or closed which can be tracked by field “IsClosed”. Requirement: On Account, there is a checkbox field “Has Open Case”, if there is any open Case under account, this field should be checked. Please make sure all …
Apex Trigger Practice (1) – Update Account Open Case Status Read More »
Use a single scheduled job to run multiple batch class dynamically
It’s very typical to run batch jobs using scheduled job in each org. I’ve seen developers to develop different scheduled job for each batch class which cost not only extra redundant code but also lot of overhead of complexity and test code liability. So, I just developed a way to use a single scheduled jobs …
Use a single scheduled job to run multiple batch class dynamically Read More »
Use a single scheduled job to run multiple batch class dynamically
It’s very typical to run batch jobs using scheduled job in each org. I’ve seen developers to develop different scheduled job for each batch class which cost not only extra redundant code but also lot of overhead of complexity and test code liability. So, I just developed a way to use a single scheduled jobs …
Use a single scheduled job to run multiple batch class dynamically Read More »
Live Agent Rest API – documentation …
Great Effort! Live Agent Rest API – documentation …
Differences Between Apex Classes and Java Classes
Inner classes and interfaces can only be declared one level deep inside an outer class. Static methods and variables can only be declared in a top-level class definition, not in an inner class. An inner class behaves like a static Java inner class, but doesn’t require the static keyword. An inner class can have instance member variables …
Differences Between Apex Classes and Java Classes Read More »
A tale of Salesforce API and when to use them
API NAME PROTOCOL DATA FORMAT COMMUNICATION REST API REST JSON, XML Synchronous SOAP API SOAP (WSDL) XML Synchronous Chatter REST API REST JSON, XML Synchronous (photos are processed asynchronously) User Interface API REST JSON Synchronous Analytics REST API REST JSON, XML Synchronous Bulk API REST CSV, JSON, XML Asynchronous Metadata API SOAP (WSDL) XML Asynchronous …