Archives

Select all fields in SOQL

Many of us are on board at force.com plateform from other languages such as JAVA, PHP, .NET etc. Those languages are older then force.com plateform. In those language whn we query the database we use following syntax to get all records. Salesforce is bit different in that way you can’t directly query this way so this recipe will show …

Extracting list of all the objects in Salesforce

Following code will Extract list of all the objects in Salesforce and their fields in Map. As you can see that in this recipe we are using Schema class getGlobalDescribe() method to get all the SObjects and then we are iterating their key values which are SObject name to get all related field using the …