Visit John Kucera's personal blog on Developer Force

Maximize Installs & Minimize Apex Test Failures

It’s a scenario many of us have been through.  You’ve slaved over your application for months, written impeccable tests, and verified everything works, but customers still can’t install the application because of test failures resulting from their validation rules and triggers preventing your test data from being created.  Even worse, you get a 1 star rating as they vent their frustrations.

For Chatter Unfollow Rules v2.0, I came up with a different approach to avoid this issue.  The app uses dynamic SOQL to let you pick which object, field, and criteria, similar to workflow rules, and then unfollows

In Blog: engineering | Tagged , , | 2 Comments

More Secure Sites Forms with Encrypted Keys

The power of Sites is the ability to publicly expose Salesforce data to the world.  In another post on the marketing blog, I showed one application of Sites for event registration forms which eliminates Lead duplicates & prevents prospects from having to retype their information.  While Sites is secure and battle tested, if you expose Salesforce data using the typical URL syntax of:
?id=00Q3000000PKsCa
a hacker could start guessing other IDs and either scrape information you show on the form for those IDs, or do any actions on those forms intended for your prospects and customers such as create bad… Continue reading

In Blog: engineering | Tagged , | 1 Comment