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
sirishanekkanti06sirishanekkanti06 

once you please verify this code.

Error: wantedrecord Compile Error: sObject type 'registration__c' is not supported. If you are attempting to use a custom object, be sure to append the '__c' after the entity name. Please reference your WSDL or the describe call for the appropriate names. at line 12 column 7

 

 

public class wantedrecord
{
public string bname{get;set;}
public string aname{get;set;}
list<registration__c> alist;
public list<registration__c> getinfo()
{
return alist;
}
public pagereference show()
{
alist=[select bookid__c,userid__c,dateoflend__c,dateofreturn__c from registration__c where
bookname__c=:bname and authorname__c=:aname];
return null;
}
}

AmitSahuAmitSahu
Are you sure your profile has access to this object ?
Vinit_KumarVinit_Kumar

Also,

 

Please make sure that the API name of custom object is registration__c.You can verify the same in :

 

Setup > Create > Custom Object > <select that custom object> .Check the API name field