function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Ashmi PatelAshmi Patel 

Create all records from scratch and in bulk

how can i create records from scratch????? 
how can i create user records????
alsinan nazimalsinan nazim
Hi Ashmi,
You have to create a batch apex (were you can do DML operations in betches conserning more records) to insert records in bulk. You can refer this link for more details.

http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_batch_interface.htm

Also you can also create user records, for Salesforce users. Please refer the below link

http://murthyvvr.blogspot.in/2013/11/creating-salesforce-users-from-apex.html

Hope that helps.
Regards
Alsinan
Ashmi PatelAshmi Patel
thnkkuu
alsinan nazimalsinan nazim
If that helped you, Please mark best answer to keep the community clean and to help others with similar queries. Regards, Alsinan P Please consider the environment before printing this e-mail -- SAVE PAPER! SAVE THE PLANET!
Ashmi PatelAshmi Patel
where should i write this code???
alsinan nazimalsinan nazim
You can write the code in corresponding APEX classes or controllers of the desired object. Create an apex controller for the same and write the code for bulking your action. P Please consider the environment before printing this e-mail -- SAVE PAPER! SAVE THE PLANET!