Find Process Builder Name by Id

Deployment errors can be hard to track down when they give vague descriptions like when a Process Builder encounters an error. You end up with something like this. System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_EXECUTE_FLOW_TRIGGER, The record couldn’t be saved because it failed to trigger a flow. A flow trigger failed … Read more

Alert with Option Buttons in the Window Body – jQueryUI in a Salesforce Custom Button

Here is another example of using jQueryUI in a Salesforce custom button. I’m referencing Super Clone Pro pages that use different configurations for cloning in this example. This could easily be adapted for other pages or actions. Enjoy! {!REQUIRESCRIPT(‘//ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js’)} {!REQUIRESCRIPT(‘//ajax.googleapis.com/ajax/libs/jqueryui/1.11.3/jquery-ui.min.js’)} var $j = jQuery.noConflict(); $j(function() { var winHead = ” + ”; var winBody = … Read more

Eclipse Force.com IDE Editor Configuration Preferences

Eclipse can be setup to display code in an infinite number of ways. The following settings are how I like to configure the Eclipse Force.com IDE. Spaces instead of tabs Show line numbers Show whitespace characters Show a print margin These settings can be changed at: Window -> Preferences -> General -> Editors -> Text … Read more

Apex File Naming Standards

Consistent file naming helps keep Visualforce and Apex classes easy to recognize and find. I’ve seen many orgs with both the good and the bad. Below is a table with naming suggestions. Some of them are mine, but most came from a presentation that I found referenced in a Trailhead module. The presentation is by … Read more