Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Presentation__c presentation = new Presentation__c(Name = 'test');
- insert presentation;
- Integer sequencesCount = 100;
- List<Sequence__c> sequences = new List<Sequence__c>();
- for (Integer i = 0; i < sequencesCount; ++i) {
- sequences.add(new Sequence__c(Name = 'test' + i));
- }
- insert sequences;
- List<SequenceFile__c> sequenceFiles = new List<SequenceFile__c>();
- List<PresentationSequence__c> presentationSequences = new List<PresentationSequence__c>();
- for (Integer i = 0; i < sequencesCount; ++i) {
- sequenceFiles.add(new SequenceFile__c(Name = sequences[i].Name,Sequence__c = sequences[i].Id, Status__c = 'Active'));
- presentationSequences.add(new PresentationSequence__c(Presentation__c = presentation.Id, Sequence__c = sequences[i].Id));
- }
- insert presentationSequences;
- insert sequenceFiles;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement