To deploy Apex Class to production, you need to have minimal 75% of overall code coverage. You can check code coverage from Developer Console | Test | New Run and select all Test Classes and Run. Tests tab will tell you all Test Classes completed successfully or failed, you also can drill down to Methods for each Test Class.
Look at "Overall Code Coverage" panel for the Classes, including Percent and Lines coverage.
You also can monitor this from Setup | Develop | Apex Test Execution, or to Run Test by click "Select Tests.." button, but this will not tell you the code coverage percentage.
If you are not using any IDE, you will find percentage coverage in Developer Console only, and you cannot copy and paste it to your team or for documentation, except take screenshots, but when you have too many class, this would be hard.
So, there is a free app from appexchange that can help you to extract this information. The app called Code Coverage Report. This app will not run test class for you, but just to report your last code coverage. The app also allowed you to extract into Excel file easily.
Type: AppExchange (Managed Package)
Paid/Free: Free
Publisher: Amit Chaudhary
Installation: https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000DXzlpEAD
Version: 1.2
Blog last update: 5 September 2016
Monday, September 5, 2016
Code Coverage Report
Monday, August 22, 2016
Salesforce1 Simulator
Once this extension added to your Google Chrome browser, navigate to chrome://apps or click Chrome App Launcher next to Windows Start button.
This extension will be very helpful when you would like to test some changes done in Salesforce and it may effect in Salesforce1, or you need to demo Salesforce1 app but you do not have the devices.
Click above icon, a new window will be open to prompt you to enter your Salesforce login credential (depend on instance you would like to work on).
NOTES as of now, there are 2 things that you need to configure in Salesforce to make this extension works:
1. Enable Lightning Experience
2. From Setup | Apps | Mobile Apps | Salesforce1 Settings, select "Enable the Salesforce1 mobile browser app".
Type: Google Chrome extension
Paid/Free: Free
Installation:
Production / Developer - https://chrome.google.com/webstore/detail/salesforce1-simulator/cknbjckicenodbiaejbmkjhldffonggp
Sandbox - https://chrome.google.com/webstore/detail/salesforce1-sandbox-simul/mgknkgnenlhghpfpdcohmgiejlcaapih
Version: 0.1.3
Blog last updated: 22 Aug 2016
This extension will be very helpful when you would like to test some changes done in Salesforce and it may effect in Salesforce1, or you need to demo Salesforce1 app but you do not have the devices.
Click above icon, a new window will be open to prompt you to enter your Salesforce login credential (depend on instance you would like to work on).
NOTES as of now, there are 2 things that you need to configure in Salesforce to make this extension works:
1. Enable Lightning Experience
2. From Setup | Apps | Mobile Apps | Salesforce1 Settings, select "Enable the Salesforce1 mobile browser app".
Type: Google Chrome extension
Paid/Free: Free
Installation:
Production / Developer - https://chrome.google.com/webstore/detail/salesforce1-simulator/cknbjckicenodbiaejbmkjhldffonggp
Sandbox - https://chrome.google.com/webstore/detail/salesforce1-sandbox-simul/mgknkgnenlhghpfpdcohmgiejlcaapih
Version: 0.1.3
Blog last updated: 22 Aug 2016
Wednesday, August 3, 2016
Chatter Monitor
Chatter Monitor is a Free Google Chrome Extension from Fronde.
Once you have the extension added, add your Salesforce/Chatter account and you can add multiple accounts you would like to monitor. Things yout can do with this extension:
- Post to your feed or a Chatter group
- Monitor feed
- Search feed
- Check your user detail and suggest item to follow
- Groups that you are member
Type: Google Chrome extension
Paid/Free: Free
Installation: https://chrome.google.com/webstore/detail/chatter-monitor/hhlhfkhgmnojpdbedbmcljmcihhcckkl/related?hl=en
More information: http://fronde.co.nz/chatter-monitor/
Version: 2.0.5
Blog last updated: 4 Aug 2016
Once you have the extension added, add your Salesforce/Chatter account and you can add multiple accounts you would like to monitor. Things yout can do with this extension:
- Post to your feed or a Chatter group
- Monitor feed
- Search feed
- Check your user detail and suggest item to follow
- Groups that you are member
Type: Google Chrome extension
Paid/Free: Free
Installation: https://chrome.google.com/webstore/detail/chatter-monitor/hhlhfkhgmnojpdbedbmcljmcihhcckkl/related?hl=en
More information: http://fronde.co.nz/chatter-monitor/
Version: 2.0.5
Blog last updated: 4 Aug 2016
Tuesday, July 12, 2016
Document your Salesforce org with Octopus
To get information about Approval Processes, Validation Rules, Workflow Rules, Workflow Field Updates, please ensure that your Salesforce instance URL has been added in the remote site settings - navigate to Setup | Administer | Security Controls | Remote Site Settings, for example, if your Salesforce instance is ap1.salesforce.com, the Remote Site URL would be https://ap1.salesforce.com
Once installed from AppExchange, navigate to Octopus tab, select items you would like to document, or you can select all items. Click View button or PDF or Word icon, and done. With just an easy a few clicks, you will get result from Salesforce org with information of:
- Name
- Namespace Prefix
- Table Enum or Id
- Active
- Last Modified Date
Sample result:
Even you downloaded the information as PDF or Word document, you still can click the Name link to open the real metadata in Salesforce.
Type: AppExchange (Managed Package)
Paid/Free: Free
Publisher: Astrea It Services Pvt Ltd
Installation: https://appexchange.salesforce.com/listingDetail?listingId=a0N3000000B5cEKEAZ
Version: 1.25
Blog last update: 12 July 2016
Tuesday, July 5, 2016
Schema Surfer
Schema Surfer offers the fastest way to browse and explore your Salesforce "object" metadata. Whether you need to quickly see all the child relationships of an object, determine if an object is queryable, or determine what is the object prefix, Schema Surfer is the app for you.
Here are a few of the great features included in Schema Surfer:
- Filter object list by API Name
- Filter object list by Label
- Filter object list by three character object prefix
- View all fields about an object in a grid or sortable table/list layout (Label, API Name, Data Type)
- View all the child and parent relationships for an object on one page
- Drill down on a field to view complete field level metadata information
Why I bold sortable? because Salesforce default object/field view is not sortable - vote for this idea.
Once Schema Surfer you installed, navigate to Schema Surfer tab, or click + tab if you do not see it on default.
Type: AppExchange (Managed Package)
Paid/Free: Free
Publisher: envyapps
Installation: https://appexchange.salesforce.com/listingDetail?listingId=a0N30000009wZM3EAM
Version: 1.1.0
Blog last update: 7 July 2016
Saturday, July 2, 2016
Declarative Rollups for Lookups
Declarative Lookup Rollup Summaries Tool is one of the most popular free tool for Salesforce admin built by fellow Salesforce MVP - Andrew Fawcett.
Out of the box, Salesforce support Roll-Up Summary field when the parent-child relation is Master-Detail relationship. But in many cases, we have to use Lookup relationship, example: sharing setting, when the child record owner may differ with parent record owner, and etc.
Without this tool, you need to engage developer to write trigger (and test class) in child object to roll-up the value to the designated parent field. With Declarative Lookup Rollup Summaries Tool, as admin, we just need to install the package and do a simple configuration to enable it, you can choose either real-time or scheduled (hourly, daily, weekly, etc).
To get full documentation, discussion and issues, go to GitHub and join Declarative Lookup Rollup Summaries Tool success community for discussion and questions https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000009O5p.
This blog will just explain basic steps to install and configure the tool:
1. Install Package
Current version 2.4.2 when this blog written - https://login.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Production; or https://test.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Sandbox.
2. Create Remote Site Setting
Once the packaged install, navigate to "Welcome" tab and click "Create Remote Site Setting" button.
This step will create a new Remote Site URL in your Salesforce org.
3. Create Lookup Rollup Summary
Navigate to tab "Manage Lookup Rollup Summaries" and enter required information.
Out of the box, Salesforce support Roll-Up Summary field when the parent-child relation is Master-Detail relationship. But in many cases, we have to use Lookup relationship, example: sharing setting, when the child record owner may differ with parent record owner, and etc.
Without this tool, you need to engage developer to write trigger (and test class) in child object to roll-up the value to the designated parent field. With Declarative Lookup Rollup Summaries Tool, as admin, we just need to install the package and do a simple configuration to enable it, you can choose either real-time or scheduled (hourly, daily, weekly, etc).
To get full documentation, discussion and issues, go to GitHub and join Declarative Lookup Rollup Summaries Tool success community for discussion and questions https://success.salesforce.com/_ui/core/chatter/groups/GroupProfilePage?g=0F9300000009O5p.
This blog will just explain basic steps to install and configure the tool:
1. Install Package
Current version 2.4.2 when this blog written - https://login.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Production; or https://test.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Sandbox.
2. Create Remote Site Setting
Once the packaged install, navigate to "Welcome" tab and click "Create Remote Site Setting" button.
This step will create a new Remote Site URL in your Salesforce org.
3. Create Lookup Rollup Summary
Navigate to tab "Manage Lookup Rollup Summaries" and enter required information.
In this sample, I would like to count number of Lane records and roll-up to Opportunity object. You cannot select Active at this moment until deploy the child trigger. So, just save this without select Active checkbox.
4. Deploy Child Trigger
Click "Manage Child Trigger" button and click "Deploy" button. This step will create a trigger in the child object.
5. Activate the Lookup Roll-up
Navigate back to "Manage Lookup Rollup Summaries" tab and select Lookup Rollup Summary created, now you should be able to enable Active checkbox to activate the roll-up configured.
6. Real-time or Scheduled
In the "Calculation Mode" you can choose Real-time or Scheduled (we will not discuss Developer and Process Builder in this blog).
Select Real-time will auto calculate when child record added, modified or deleted. Select Scheduled, you need to schedule when the calculation trigger, click "Schedule Calculate" button to schedule when it will be triggered, by a specific hour, hourly, specific day, etc. Example: you can configure multiple hour, such as: daily 2 AM and 6 AM by hold Ctrl key when click.
You can monitor next scheduled run from Setup | Jobs | Scheduled Jobs.
If you configure the calculation mode as Real-time on existing child object with records, parent record will not be auto populate with the roll-up value until there is activity in a related child record, either create, update or delete. So, you may need to create another roll-up with Scheduled to calculate existing values.
Type: Managed Package; Private Listing
Paid/Free: Free
Publisher: Andy in the Cloud
Installation: https://login.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Production; or https://test.salesforce.com/packaging/installPackage.apexp?p0=04tb0000000ka9e for Sandbox
Version: 2.4.2
Blog last update: 2 Jul 2016
Subscribe to:
Posts (Atom)













