• AV Naresh
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi,
I'm getting the below when i'm trying to update the record
System.DmlException: Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []

Thanks in Advance

AT__c OOFRec =  new AT__c();
    public KB__c getOOFRec (){    
        List<AT__c> oofList = [select id, Details__c, Hide_Comments__c from KB__c where Context__c = 'IT Page' AND Title__c = 'Message2' limit 1];
        KB__c SupportOOF = new KB__c();
        if(oofList.size() > 0){ SupportOOF = oofList.get(0);
                   system.debug('tech supportOOF------'+techSupportOOF);}
        }
        return techSupportOOF;       
    }
    public void saveOOFRecord(){
            system.debug('tech supportOOF------'+OOFRecord);
            update OOFRecord;
    }
Hi,
I'm getting the below when i'm trying to update the record
System.DmlException: Update failed. First exception on row 0; first error: MISSING_ARGUMENT, Id not specified in an update call: []

Thanks in Advance

AT__c OOFRec =  new AT__c();
    public KB__c getOOFRec (){    
        List<AT__c> oofList = [select id, Details__c, Hide_Comments__c from KB__c where Context__c = 'IT Page' AND Title__c = 'Message2' limit 1];
        KB__c SupportOOF = new KB__c();
        if(oofList.size() > 0){ SupportOOF = oofList.get(0);
                   system.debug('tech supportOOF------'+techSupportOOF);}
        }
        return techSupportOOF;       
    }
    public void saveOOFRecord(){
            system.debug('tech supportOOF------'+OOFRecord);
            update OOFRecord;
    }