Skip to main content

In the Module Get Started with Salesforce Development >Write Business Logic in Apex.....when i created the apex class HouseService and replace the code in the file and deploy the source to org i am getting Invalid type: House__c (6:13) error. I am just copy & pasting....where i am going wrong ?? 

3 réponses
  1. 23 mars 2023, 15:48

    Hi @Shahvez khan,

    getting Invalid type: House__c  

    this error comes especially when you have given wrong API name for an object or when your SF org don't have that object created and you are trying to reference it.

     

    I think you should check if you have House__c custom Object Created in your current playground/Org, the org that you are deploying the code to should have House__c Object Created

0/9000