For SFDC Admins : To do Dashboard Auto Refresh in Salesforce

Auto refreshing dashboard: This is the feature many SFDC Admins have been asking for. Currently it is not possible to refresh the dashboard automatically when the sfdc user logs in to Use the following steps to refresh the dashboard( automatically…after 5 seconds) when the user logs in to the salesforce OR the user clicks […]

Object sharing using Email approval in Salesforce

This solution gives record access to a Salesforce user via email approval. Here we are providing access to the Accounts but this can be generalized for any standard or custom object.  In order to grant access to the Account, an approval workflow request would be sent to the record owner and upon approval Apex code […]

How to create RowID in Tables : Here is the Code or Script Code for ID creation

If you are looking for to How to create RowID in Tables : Here is the Code or Script Code for ID creation, Find below a simple Script or Code for generating Row ID or Record ID in Tables for Salesforce public void viewTracking(){ if(trackingRow != null){ list rowId = trackingRow.split(‘:’); if(rowId.size() >1){ //system.debug(‘***’+ integer.valueof(rowId[(rowId.size()-2)])); Tracking […]

Query User access Level in Apex

     With API 24 salesforce has given access to UserRecordAccess table. This gives us more power in querying whether user have access and upto what level so that we can build our VF and apex accordingly. I was writing a VF page in which i needed to have a table of sobject records with […]

How to Sort an Apex class Object List

How to Sort an Apex class Object List [Edit : Now there is an interface natively provided by salesforce to sort the class object lists] I recently needed to sort an apex class object List which was retrieved through a webservice callout as it could not be sorted at the service end. This is the […]

How to Filter list alphabetically

How to Filter list alphabetically There was a requirement where i needed to build a list which can be filtered based on the starting alphabet. And also the List needs to remember the selections made as we move through other pages. | Please wait… In the VF page i am displaying the List ‘CurrentLsit‘ which […]

Hierarchy in VisualForce

Hierarchy in VisualForce is an interesting feature unique to VisualForce This is an example of how to build a hierarchy Lists in VF page with select checkboxes. It will have a checkbox at parent level with which you can select all the child automatically. It has a neat link with which you can show or

SFDC API 24.0 test failure issue

Yesterday I was experiencing a weird issue. My SFDC API Test Failed.For a new requirement we did development in our DEV environment…We wrote new test methods and we thought the work is done :)… However, there were Null Pointer Exceptionswhen we ran the test methods. And it was pointing to the custom settings….we doubled checked […]

Batch scheduler class testing

Template for batch & scheduler class test method:@isTest  private class Test_Nameofurclass {     static testmethod void test_Nameofurclass (){         DateTime currTime =;         Integer min = currTime.minute();         Integer hour = currTime.hour();         String sch;     if(min <= 58)       […]