So before knowing how to handle this exception we need to understand why this error comes or say what is the root cause of this error . Whenever you are getting this error it means that you cannot perform DML on two sObjects (setup & non-setup) in the same transaction. In general, all the apex … Continue reading How to handle mixed DML Exception in salesforce?
How to run batch Class in Salesforce?
1. From the Developer Console, click Debug | then Open Execute Anonymous Window.2. Execute the following code. Id runningJobID = Database.executeBatch(new TestBatchForRun(), 200); After running this piece of code you will get the Debug log for the same and you check if the batch is running or not. With this you can even go to Setup > … Continue reading How to run batch Class in Salesforce?
Trigger To check Duplicate on Lead Using Email and Phone
The above functionality can be achieved by duplicate rules. But as we are into coding we will be writing trigger for it. We will be writing Trigger and Handler for it. The best practice for writing a trigger and Calling the apex class in which we will be writing the business logic for it. Apex … Continue reading Trigger To check Duplicate on Lead Using Email and Phone
Wrapper Class in Salesforce
A wrapper class is a class, a data structure, or an abstract data type which contains different objects or collection of objects as its members.The main reason for using a wrapper class is it helps in displaying the records for the multiple types of objects.The wrapper is class which we create to hold the data … Continue reading Wrapper Class in Salesforce
Helpful Google Chrome Extensions for Salesforce Developers and Admin
Hi Everyone !!!! Today I am going to discuss some of the helpful Google Chrome Extensions that are valuable for both Admin and Devs. Salesforce Simulator: This is a great tool to train new users on how to use the Salesforce1 mobile app. The extension creates a virtual version of the Salesforce1 app that can be … Continue reading Helpful Google Chrome Extensions for Salesforce Developers and Admin
You must be logged in to post a comment.