You need to sign in to do that
Don't have an account?
Ragula 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;
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;
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.