Mixed DML Operation Error in Salesforce
Mixed DML error in Salesforce
Mixed DML error in Salesforce
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
Introduction In this article, we will learn how to schedule an apex Batch Class in Salesforce without creating multiple classes. Apex Code
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 …
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 …
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
Requirement Need to be able to mass transfer pending approval requests. Solution APPROACH 1: Standard Salesforce Approach APPROACH 2: Using Apex Code
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 »
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, …
I assume you are familiar with Dynamic Actions. If not, please read this. I also assume you have a basic understanding of AJAX Callbacks, even if you’re not well-versed in the details. Both Dynamic Actions and AJAX Callbacks allow developers to call PL/SQL from JavaScript, a highly powerful capability. Technically, an APEX Callback can only …
When To Use AJAX Callbacks Vs. When To Use Dynamic Actions Read More »