Refresh Detail Page Fields from Custom Quick Action

If you want to update information displayed on the detail page or the feed view on an object after updating the record from a custom quick action visualforce page, then you can you the below snippet which uses the Canvas / Publisher API.

//Publisher JS Library
<apex:includeScript value="/canvas/sdk/js/publisher.js" />

//Action Function
<apex:actionFunction name="executeUpdate" action="{!updateCaseClassification}" oncomplete="refreshFeed();">

function refreshFeed() 
{
    Sfdc.canvas.publisher.publish(
    { 
        name : 'publisher.refresh', 
        payload : { 
            feed: true, 
            objectFields: true
        }
    });
}

Salesforce Developer Console Shortcut

A quick time saver to launch the Developer Console from a Chrome bookmark page.   You just need to ensure that you are on a Salesforce page when clicking the bookmark as it uses the active pages instance URL for the Developer Console URL construction.

Here is the code for the bookmark page:

javascript: var url = window.location.protocol+'//'+window.location.hostname+'/_ui/common/apex/debug/ApexCSIPage'; window.open(url, "_blank");