For Developers

  • Apex Sharing Gotchas in Salesforce
    July 6, 2018

    Apex Sharing Gotchas in Salesforce

    In order to give access to data records to other users in your org who would otherwise not have access to it, you can take advantage of Apex Sharing.  It can apply to standard and custom objects but comes with some complexities that can catch you off-guard. I wrote this article with the hope that it will help others facing similar issues.

    Read more
  • Top 3 Things to Consider When Preparing For Integrations
    April 9, 2018

    Top 3 Things to Consider When Preparing for Integrations

    Are you considering integrating another system in Salesforce? Preparing for such a task is crucial to the success and stability of the project and can often times be challenging. As consultants, we are faced with a lot of projects that include some type of integration and we have seen the effect of how disastrous it can become without aski

    Read more
  • January 3, 2018

    Lightning Exception Handling Framework

    There are 3 types of code: Bad code, functional code, and good code. Bad code simply doesn't work and functional code works but has a bad user experience, but what makes good code "good"? There are a million ways to correctly answer that question, but I'm not writing on a million topics so I will point out a select few. Good code handles excep

    Read more
  • Insufficient Access Error
    June 7, 2017

    Troubleshooting that Pesky “INSUFFICIENT ACCESS ON CROSS REFERENCE ENTITY” Error

    If any of you have ever dealt with the dreaded "INSUFFICIENT ACCESS ON CROSS REFERENCE ENTITY" error, you will probably agree that this is one of worst errors to debug in Salesforce. There is virtually no information with the error that helps identify the problem. Most of the time I find that there is a permission issue on a lookup field that

    Read more
  • July 28, 2016

    Lightning Design System Tricks and Tips

    I recently had the opportunity to build several Visualforce pages paired with the Lightning Design System (LDS). While I learned a lot, I also hit some bumps along the way. At OpFocus, whenever we have a learning experience like this, we are encouraged to share with our peers...so that's what I'm doing in hopes that someone in the Salesfo

    Read more
  • 5 Quick Tips to Great Code
    June 2, 2014

    5 Quick Tips to Write Great Code

    At OpFocus, we often review code written by other developers. Sometimes these code reviews are planned: a client invites us in to review their code, either for training purposes or to address a specific problem. Other times, code reviews are a response to an unexpected emergency: for example, we try to deploy new functionality only to discover

    Read more