Salesforce Schedule APEX Batch Job

To test an APEX Batch job, open the Developer Console then the Anonymous Execute window. Here’s the code to run the job: datetime thisTime = system.now().addMinutes(1); integer second = thisTime.second(); integer minute = thisTime.minute(); integer hour = thisTime.hour(); integer day = thisTime.day(); integer month = thisTime.month(); integer year = thisTime.year(); String timeStamp = second + ‘ ‘ + minute + ‘ ‘ + hour + ‘ ‘ + day +

Salesforce Add Action To apex:EnhancedList

There’s no quick way to add actions to a Salesforce VisualForce page with an EnhancedList. Here’s the workaround. apex:page > script type=”text/javascript”> function endsWith(str, suffix) { return str.indexOf(suffix, str.length – suffix.length) !== -1; } function setActions() { Ext.ComponentMgr.all.each( function(item, index, length) { if(endsWith(item.id, “grid”)) { var store = item.store; item.store.each( function(record) { record.set(“ACTION_COLUMN”, [“My Action”]); }); } }); } /script> apex:enhancedList type=”Systems__c” height=”300″ oncomplete=”setActions();” /> /apex:page> Salesforce uses the Extjs

Salesforce Group Tables with Conga Composer

For a recent client project working with the Salesforce.com platform I used Conga Composer to create custom quotes. The client is an engineering firm and one of the quotes required employee hours billed under dynamic categories. The quote needed each employee’s hours listed under the associated category. Here’s how to create the quote. 1. Create a report table in Salesforce using the schema builder. Give the table 10 or so

Salesforce Custom Hours Billed Quote with Conga Composer

For a recent client project working with the Salesforce.com platform I used Conga Composer to create custom quotes. The client is an engineering firm and one of the quotes required employee hours billed under dynamic categories. The quote needed each employee’s hours listed under the associated category. Here’s how to create the quote. 1. Create a report table in Salesforce using the schema builder. Give the table 10 or so

Salesforce.com Data Download via Java Swing, RSSBus JDBC Driver, and Apache Commons Daemon

I recently developed an application that synchronizes Salesforce.com data to a local PC. The application is developed in Java using the Swing graphical framework and uses a Salesforce.com JDBC driver provided by RSSBus. The application stores Salesforce.com credentials and synchronization interval timing data in a Java properties file. The application allows non-graphical execution via the “nogui” command argument. I also include an Apache Commons Daemon class and script that allows

Salesforce Trigger To Add Contacts From Account Linked to Opportunity

I couldn’t find any example code on the Net to accomplish a task that is probably common amongst many Salesforce implementations. I have a requirement to link a second account to an opportunity in Salesforce. In my use case, the primary opportunity account represents a construction project general contractor, and the second linked account represents the building owner. I need to automatically pull the building owner account contacts into the

Developers and Side Projects

There’s a great article on Medium about Developer ADHD. The author explains why some developers have lots of unfinished side projects. Like the author I too have several unfinished side projects. I find I usually will give up on a side project after I’ve fully learned the underlying technology. Here’s the rundown of a few of these projects. Autodesk Revit PDF PrintoutsThis app was actually the idea of one of

Commodity Inspections Application

I’ve been working on an application for inspecting Mississippi River cargo ships that hold agricultural commodities. I developed the app in Python on Google App Engine using the Django framework and used Bootstrap as the front-end framework. The project has been managed via a Kanboard on Zydeco’s website. Here are a few screenshots: The main vessel table shows the status of ongoing jobs and was built via customizing an open-source