Tag Archives: Best Practices

Maximizing Browser Performance with the Salesforce Console

This article is about the Salesforce Console for service and sales. It does not refer to the Developer Console, or the new Lightning Console Apps coming in Spring '17. As we mentioned in an earlier blog post here, there can be a significant difference in Console performance depending on which browser you choose. This article will […]

Communicating between Lightning Components and Visualforce Pages

There are many places where you can use Visualforce pages in Lightning Experience. The Visualforce & Lightning Experience module in Trailhead covers these scenarios in detail. In some of these places, a Visualforce page can coexist with Lightning Components on the same page. For example, in App Builder, you can use the Visualforce Standard Component […]

Time to Clean up Those Unneeded Salesforce Customizations

Your company has been a Salesforce customer for a while now. How old is your Org now? Five years? Ten? Chances are there are a bunch of customizations and technical debt lingering around your org that you no longer need. Business processes and priorities are constantly changing and some of the customizations you built just […]

Six Tips to Great Unit Tests

Writing tests that get you to the magic 75% code coverage requirement is easy, but writing great tests that protect you from regressions is a real skill. In this blog post, I'll suggest six practical tips to help you write great Salesforce tests that don’t become a maintenance headache. Of course it doesn't matter how good […]

Internationalization Options in AngularJS and Salesforce: Part 2 – Time Zone Conversions

In part one of this series, we covered how to leverage some of the settings from the user’s profile in Salesforce to control the locale settings in angularJS. In this post, we will build off that initial example and extend it to cover time zone conversions. This will enable us to see all the data presented to the logged in user in that user’s time zone. This example could be further extended to allow the logged in user to see the data presented in another user’s time zone. An example of this is if an activity, task, or event needs to be assigned to a user in a different time zone, it is created in their time zone, not the time zone of who has created the activity. As long as the correct time zone is pulled from their profile, the new task is created in their time zone using the techniques outlined below.

Internationalization Options in AngularJS and Salesforce: Part 1 – Localization

An ISV partner recently asked us what their options were for performing internationalization (language translations, locale formatting, time zones, etc.) within a JavaScript Framework – specifically angularJS. They were looking to increase their app’s performance but did not want to give up all the “goodness” that they receive by using Visualforce components (think locale formatting for dates or currency). The ISV TE team did some research and came back with some options that could be leveraged to perform internationalization in angularJS. This is the first of a four-part series blog to cover our findings. Part one of this series will cover Localization. Part two will cover TimeZones Conversions. Part three will cover Language Conversions. Finally, Part four will cover Currency Conversions.

Apex Best Practices: The 15 Apex Commandments

Follow these 15 Apex Commandments for developing applications with Apex code and Visualforce.

Run Your PHP Apps on the Salesforce1 Platform

The Salesforce1 Platform now supports PHP using Heroku. Learn how the new PHP can make your app development more efficient.

Developing Selective Force.com Queries through the Query Resource Feedback Parameter Pilot

With the Spring '14 release, all Force.com developers have access to an exciting new tool: an "explain" parameter option in the platform's REST API. John Tan of Technical Enablement and guest author Chris Peterson have written an article that explains the Query Resource Feedback Parameter pilot and shows you how to use it to retrieve the query execution options that the Force.com query optimizer is considering. The article also gives you a simple Visualforce page and Apex controller to wrap the REST API call.