System.SObjectException: You cannot call addFields when the data is being passed into the controller by the caller In your StandardController extension, we were using the StandardController.getRecord() method to fetch the record …
APEX
-  APEXSALESFORCESalesforce ConfigurationSalesforce.com
 -  APEXSALESFORCESalesforce CustomizationSalesforce.com
How can I export a report as a CSV/Excel file and send the report as Email Attachement using Apex Class?
How can I export a report as a CSV/Excel file and send the report as Email Attachement using Apex Class? We can send the Salesforce report as csv/excel file with …
 -  APEXSALESFORCESalesforce Customization
Removing the last character from a String Using Salesforce Apex Class
Removing the last character from a String Using Salesforce Apex Class We can easyily remove the last character from a string by using the Substring() method using Apex Class For …
 -  APEXSALESFORCESalesforce CustomizationSalesforce.com
How to convert from String to Blob using Apex Class?
How to convert from String to Blob using Apex Class? From Blob to String:- blob tempBlob = report.getContent(); String tempString = tempBlob.toString(); From String to Blob:- String tempString = ‘TheBlogReaders.com’; …
 -  APEXSALESFORCESalesforce CustomizationSalesforce.comSOQL
How to get the Current Date and Year Using Apex Class?
How to get the Current Date and Year Using Apex Class? System.debug(‘************ ‘ + system.today().format()); System.debug(‘************ ‘ + date.today().format()); Output:- ************ 07/16/2014 ************ 07/16/2014 How to get current year using …
 -  APEXForce.comSALESFORCESalesforce CustomizationSalesforce.com
How to identify the Future Calls limits using Apex Class?
How to identify the Future Calls limits using Apex Class? We can get the Future Call limits using Defug log like below: Number of SOQL queries: 10 out of 100 …
 -  APEXSALESFORCESalesforce CustomizationSalesforce.comSOQL
How to Access Query Results (SOQL) Values using MAP in Apex Class?
How to Access Query Results (SOQL) Values using MAP in Apex Class? For Example: This is a After Trigger in Account: for (Account acc : Trigger.new) { accId.add(acc.Id); } map<Id, …
 -  
Remove the Space from String using Apex Class String str = ‘ TheBlogReaders.com Salesforce.com, PHP, MySQL, Javascript, Ajax, Htacces FREE Blog ‘; str = str.trim(); str = str.replaceAll(‘(\\s+)’, ‘ ‘); …
 -  APEXData LoaderReportsSALESFORCE
How to generate the reports that list of all the Knowledge Users and Service Cloud licenses?
How to generate the reports that list of all the Knowledge Users and Service Cloud licenses? Its not possible to generate the reports for Knowledge users, Service Cloud user but …
 -  APEXSALESFORCESalesforce CustomizationSalesforce.com
How to get field data types for each fields in Salesforce objects?
How to get field data types for each fields in Salesforce objects? we can get the all the standard and custom objects fields data types using the getGlobalDescribe, getDescribe, getType. …