How To Get Picklist Values Using SOQL In Salesforce?
In this blog, you will learn how you can clone a record using apex in salesforce.
Follow below simple steps
- Go to Setup
- Open Developer Console
- Go To Debug menu
- Select Open Execute Anonymous Window from dropdown
Account acc = [select id, name, phone, site, type, active__c from account limit 1];
account copyAcc = acc.clone(false,false,false,false);
insert copyAcc;
- Click on Execute
Demo
Follow Us