Mixed DML Operation Error in Salesforce
Mixed DML error in Salesforce
Delete Debug Log In Salesforce Programmatically
Requirement To delete debug logs programmatically in Salesforce, you can use the Salesforce Tooling API as simple Apex DML is not supported on this. Specifically, the ApexLog object represents the debug logs, and you can delete them by querying this object and then using the API to delete the logs. Apex Code
How to write a Schedulable Apex Batch Class
Introduction In this article, we will learn how to schedule an apex Batch Class in Salesforce without creating multiple classes. Apex Code
Categories Of Apex Triggers In Salesforce
Apex Triggers in Salesforce are utilized to execute various Apex code actions. They enable users to perform custom operations before or after new or modified records are saved to the database. Triggers are activated by record changes, such as insertions, updates, or deletions. In Apex, a trigger can be executed either before or after the …
Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id’s using the IN operator.
Introduction This error may take place while querying ContentDocumentLink and filtering it with IN operator. Sometimes, it shows a weird behaviour and throw below error: “Implementation restriction: ContentDocumentLink requires a filter by a single Id on ContentDocumentId or LinkedEntityId using the equals operator or multiple Id’s using the IN operator.” Possible Reasons Add check as …
Why Case Milestones get disappeared from Related List?
INTRODUCTION Sometime, we setup an entitlement process with milestones (no-reoccurrence type) & entitlement, and assigned the entitlement to a case. The process may work as expected, but sometimes you may some kind of issues like once a milestone is complete it disappears from the Case Milestones related list. POSSIBLE REASONS
How to mass reassign approval requests in Salesforce
Requirement Need to be able to mass transfer pending approval requests. Solution APPROACH 1: Standard Salesforce Approach APPROACH 2: Using Apex Code
Transform Your APEX Development With Template Components
Craft Your HTML Component You have the option to utilize platforms like codepen.io for this purpose if you require a custom design, or it’s also an excellent resource for finding boilerplate code that you can customize to fit your needs. Here’s an example I crafted for our card design: You’ll observe the incorporation of APEX …
Transform Your APEX Development With Template Components Read More »
APEX Execution Chain Procedure
Preceding Execution Chains On an APEX application page, I’ve established a straightforward procedure to mimic a possibly longer-running process by utilizing sys.dbms_session.sleep. This procedure doesn’t employ the new Execution Chain; rather, it’s a standard Execute Code process type designed to execute the specified PL/SQL code. The duration of the sleep is determined by the user, …