+ Start a Discussion
vanessa veronvanessa veron 

How I can insert value into Custom Object via Apex

Hello...

I need to insert a value into my custom object.

I tried this, but I have a error (Compile Error: Invalid type: GarderJob__c at line 204 column 31)
public static String TesteObjet(){
     //error
    GarderJob__c newObj = new GarderJob__c(Mail__c = 'zap', Requete__c='kkkk', Expression__c='jjjj');
    insert newObj;
}

Thank you
Best Answer chosen by vanessa veron
VPROKVPROK
Looks like you've just misspelled the objects name.

All Answers

VPROKVPROK
Looks like you've just misspelled the objects name.
This was selected as the best answer
VPROKVPROK
if not - paste the whole class
vanessa veronvanessa veron
Thank you