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
PAWAN THOSARPAWAN THOSAR 

2. Write an apex program, to Insert 200 Hiring Manager Records inside the Object. with dml operation

Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pawan,

If you want the code block in anonomous block you can try as below.
 
List<Hiring_Manager__c> managerList = new List<Hiring_Manager__c>();
for (Integer i = 0; i < 200; i++) {
    Hiring_Manager__c manager = new Hiring_Manager__c();
    manager.Name = 'Hiring Manager ' + (i+1);
    
    managerList.add(manager);
}

insert managerList;

If you want in apex class I have already answered in the below link.

https://developer.salesforce.com/forums?dc=Apex_Code_Development#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=ALLQUESTIONS&id=9062I000000R5u0 (https://developer.salesforce.com/forums?dc=Apex_Code_Development#!/feedtype=SINGLE_QUESTION_DETAIL&dc=Apex_Code_Development&criteria=ALLQUESTIONS&id=9062I000000R5u0)

Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,
PAWAN THOSARPAWAN THOSAR
invalid type; Hiring_Manager__c
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pawan,

Can you confirm the correct API name of the object?

Thanks,
 
PAWAN THOSARPAWAN THOSAR
Assignment on DML Operations
1. Write an apex Class, to Insert a Lead Record inside the Object.
2. Write an apex program, to Insert 200 Hiring Manager Records inside the Object.

can u help me for solve this 

 
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Pawan,

Did you create a custom object Hiring Manager?

Thanks.
 
PAWAN THOSARPAWAN THOSAR
yes and also insert 200 hiring maneger record inside this object 
Sai PraveenSai Praveen (Salesforce Developers) 
HI Pawan,

If you can join now. I will share the gmeet link.

Thanks,
 
PAWAN THOSARPAWAN THOSAR
ok share me link