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
Ragula SivakumarRagula Sivakumar 

Use Custom Setting over bulk record creation

I have cretaed one list custom setting with list od=f text values .
I want to use the the custom setting to create a bulk records in another object 

custom_setting__c customsetting=custom_setting__c.getValues('record');

List<object__C>objlist= new list <object__C>();
      for(integer i=0;i<200;i++){
     object__C led = new Lead__c(name='Test);
           objlist.add(led);                
      }
     insert objlist;

 
AbhishekAbhishek (Salesforce Developers) 
You can try the suggestion as mentioned in the below developer discussion,

https://salesforce.stackexchange.com/questions/134025/how-to-use-custom-settings-rather-than-query-multiple-time-from-an-object

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Thanks.