Skip to main content

Posts

Showing posts from July, 2013

Summer13 Release Notes For Exam

Hi Guys  Today I have cleared Summer13 release exam , Now I am sharing some important topic for your help. Before going for the exam make sure that you know about Salesforce Communities , Force.com canvas, New formula Return Type ,  Restrict to Visitors to Site ,   Sandbox template . Improved Setup user interface and Enhanced Report and Dashboard Folder Sharing. Please go through this only once You will find all the questions from this only.The text which are red are most important one.     Improved Setup user interface The setup menu items are organised into goal-based categories Administrators can enable or disable the new setup user interface at any time . Personal settings, which all   salesforce.com   users can edit, are available in a separate “My Settings” menu. To access “My Settings”, click your name at the top of any Salesforce page, then click “My Settings”.   Salesforce Communities Now any company can creat...

Creating Test Class to Cover RecordType

Hello  I have come across many times this question how to cover record type in test class,This made me to share in  my blog.Here is the code you can refer for example : let say we have two Contact Record Types PrimaryContact and BusinessContact. Now  we can create Contact record by using these recordtype  such as PrimaryContact  or BusinessContact . There are two different approach. First Approch   We normally query like this .      RecordType rt = [SELECT id,Name                               FROM RecordType                               WHERE SobjectType='Contact ' AND Name='PrimaryContact ']; And now use this value further while creating the Contact Record.    Contact con = new Contact (Name='TestConatct' , recordTypeId=rt.id);    INSERT con; ...