• Santosh Rothu
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
global class Positions__c
{
   global void Positionpro()
    {
        Position__c pos=new Position__c();
        
        pos.Contact_Number__C ='1569896';
        pos.Location_del__C ='tex';
        pos.Place_applied_for__C ='USA';
        pos.Position_Name__C = 'Salesforce admin';
        Pos.Qualification__c ='B.tech';
        pos.name = 'Prjwal';
        Pos.Skills_Required__c ='Communication & Salesforce admin';
        pos.Visit_for_Details__c ='https://lntcom3-dev-ed.my.salesforce.com/_ui/common/apex/debug/ApexCSIPage';
        
        
        Insert pos;
        
        if(pos.id!=null)
        {
            System.debug('Your position details Recorded sucussfully'+Pos.id);
            
            Hiring_Managers__c Hr= new Hiring_Managers__c();
            
            hr.Name ='Jakson';
            hr.HR_Contact__c ='+911230';
            hr.HR_Email__c ='xyz@gmail.com';
            hr.Mile_stone_date__c = date.newInstance(2021,12,31);
            hr.Position_Open_Date__c = date.today();
            
            hr.Position__c=pos.id;
            insert hr;
            
            if (hr.id!=null)
            {
                system.debug('Your Hr Record entered sucuufully'+hr.id);
            }
            
 
        }
              
    }
}

when excute Error like this,this is for another program..For all Procedure classes get error in this way.Please do help for me.
global class Positions__c
{
   global void Positionpro()
    {
        Position__c pos=new Position__c();
        
        pos.Contact_Number__C ='1569896';
        pos.Location_del__C ='tex';
        pos.Place_applied_for__C ='USA';
        pos.Position_Name__C = 'Salesforce admin';
        Pos.Qualification__c ='B.tech';
        pos.name = 'Prjwal';
        Pos.Skills_Required__c ='Communication & Salesforce admin';
        pos.Visit_for_Details__c ='https://lntcom3-dev-ed.my.salesforce.com/_ui/common/apex/debug/ApexCSIPage';
        
        
        Insert pos;
        
        if(pos.id!=null)
        {
            System.debug('Your position details Recorded sucussfully'+Pos.id);
            
            Hiring_Managers__c Hr= new Hiring_Managers__c();
            
            hr.Name ='Jakson';
            hr.HR_Contact__c ='+911230';
            hr.HR_Email__c ='xyz@gmail.com';
            hr.Mile_stone_date__c = date.newInstance(2021,12,31);
            hr.Position_Open_Date__c = date.today();
            
            hr.Position__c=pos.id;
            insert hr;
            
            if (hr.id!=null)
            {
                system.debug('Your Hr Record entered sucuufully'+hr.id);
            }
            
 
        }
              
    }
}

when excute Error like this,this is for another program..For all Procedure classes get error in this way.Please do help for me.