Generic sObject Limits
Generic sObject by default can only have fields added using constructor syntax such as Account acct = new Account(Name=‘Salesforce Consulting Company’, Phone=’(555)555-5555’, ClientStatus__c=‘Active’, ContactCount__c=100);
To use the dot notation syntax, you must cast the generic sObject.
Account acct = (Account)myGenericObject; String Name = acct.Name; String Phone = acct.Phone; String ClientStatus__c = acct.ClientStatus__c; String ContactCount__c= acct.ContactCount__c; Unlike strict declarations of specific sObjects types, generic sObjects can only be created using New sObject() insertion methods. Querying generic sObjects can only be done through Put() and Get() methods.












