How to query Tasks of converted Lead
How to query Tasks of converted Lead
How to query Tasks of converted Lead
DESCRIPTION This error you may be facing while making a simple call to apex method from LWC and any record is being created, updated or deleted. SOLUTION If the apex method you are invoking from LWC is annotated as cacheable=true then you can not make any DML in that context. So, in order to avoid …
Too Many DML Statements 1 in LWC Apex Controller Read More »
In Salesforce, you can check if the current user is an admin by checking their profile or permissions. The easiest way to do this is by checking if the user has the “Modify All Data” permission, which is a standard permission given to system administrators. Here’s how you can check if the current user is …
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 …
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, …