Created
May 1, 2016 16:47
-
-
Save atulgupta31/9907bc70d127cdcdb29702a48f97377d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create a new account as the generic type sObject | |
sObject s = new Account(); | |
// Verify that the generic sObject is an Account sObject | |
System.assert(s.getsObjectType() == Account.sObjectType); | |
// Get the sObject describe result for the Account object | |
Schema.DescribeSObjectResult dsr = Account.sObjectType.getDescribe(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment