Salesforce DevTools – Powerful Salesforce developer tools, loved by over 50K developers

Salesforce DevTools is a Chrome extension helping Salesforce.com developers do the below things: ・Fully GUI Query editor for generating SOQL and exporting as Excel. ・Exporting Objects Fields, Page Layout, List View Definition as Excel. ・Generating Salesforce data model (ERDs) as svg. ・Show / Hide object API name on object detail page by 1 Click. ・Quickly […]

read more

Write Apex Test Classes efficiently with Tesforce

1.Why Tesforce The Test Classes are required to deploy Apex to a production environment or to be packaged and placed on Force.com AppExchange, it must provide at least 75% code coverage. That will be a huge workload to SFDC Developers if the project(application) include a lot of Apex Classes,the cost of time to write Test […]

read more

Salesforce ContentDocument sObject in Apex Unit Tests

ContentDocument object does not allow insert DML operation in Salesforce, but we can create it through the ContentVersion object, without ContentDocumentId, then a new version of ContentDocument will be created for us in SFDC, just like the sample code below :

read more

Salesforce CategoryNode sObject in Apex Unit Tests

In Salesforce,DML operation is not allowed on CategoryNode sObject,even in Unit Test. Although the 《Force.com Apex Code Developer’s Guide》 does not mention it clearly,that CategoryNode object can be accessed in Apex Tests, we have to prepare CategoryNode data first in Setup interface.by clicking Customize > Solution > Solution Categories. The following is the sample code […]

read more

Salesforce CollaborationGroup sObject in Apex Unit Tests

The below Test Class Code will occur [System.DmlException: Insert failed. First exception on row 0; first error: DUPLICATE_VALUE] error if a same CollaborationGroup was existed,even Test Class dose not have the @IsTest(SeeAllData=true) annotation. As the document of Salesforce CollaborationGroup API [SOAP API Developer’s Guide],the Name of CollaborationGroup must be unique across public and private groups. […]

read more