I want to create lists of sobject where sobject types will be input from a custom label or a custom metadata.
Can I create a list of sobjects in a for loop where the name of the list will be dynamic?
something like this -
for(Integer i=0; i<somesize; i++) {
List<SObject> listName*i* = new List<SObject>();
}
i
. Is that really what you want to be dynamic?