Best Practices for Exception Handling in Salesforce Apex
What’s an Exception
An exception is an unexpected event that occurs when code is executing. Basically apex is signalling there is a problem and that it can’t deal with the issue. …
An exception is an unexpected event that occurs when code is executing. Basically apex is signalling there is a problem and that it can’t deal with the issue. …
Over the years, it’s been possible for Salesforcce Developers to avoid needing to learn JavaScript because things could usually be done through a combination of apex and visualforce. If you don’t know JavaScript and you are a Salesforce Developer, you need to really consider finishing this post and learning JavaScript. …
Lightning has really expanded since it was originally introduced at Dreamforce 2014. Originally, Lightning was introduced as a couple of different products that were all sort of related because they had the same incredibly new looking UI. …
One of the key advantages of CRM is that it gives insights for management into the Sales process and provide feedback what is going right and what is going wrong with the Sales Process and with their Sales Team. …
Apex Triggers don’t need to be complicated. If you have worked with databases like SQL Server or MySQL the triggers execute in a very similar fashion. …
I believe that most Salesforce developers that started before trailhead started in a way similar to mine. I didn’t plan on becoming a Salesforce Developer. …
In the blog post “What’s the difference between a Lead and Opportunity?” I spent a bit of time covering how leads are converted into accounts, contacts, and opportunities. Basically, a lead is converted when the sales person thinks that there’s actually an opportunity to sell them something. In a lot of cases, it might make…
A lead is basically a person that has contact information that you should be able to sell to, they have been created because they have contacted you in someway with some sort of need whether this be that they filled out a contact form on your website or they exchanged business cards with somebody at a tradeshow. …
“Lead Source” is a standard picklist field on the Lead which is used to determine where that particular Lead came from.
This field is highly valuable to a skilled marketing team because it will allow them to evaluate how the leads they are acquiring are doing for the sales team.
…
Every now and then, I find I get a few jobs that are stuck in the queue which end up causing things like reports to stop being generated or stop pardot from syncing or just causing general chaos.
…
Salesforce allows data access to be specified at the object level, field level, and finally record level. To get listed on the AppExchange an application has to go through a really extensive security review process. As part of the review process Salesforce confirms that security permissions are being adhered to. Unfortunately, apex doesn’t automatically follow…
Really excited to announce that the application I’ve been working on for the last few months is now available on the Salesforce AppExchange. One of the most exciting things is that it went live with a Salesforce Lightning Component.…
In synchronous programming, each step is performed one after the previous one is finished executing. This means that each step blocks the next step.
In a lot of cases, we probably don’t necessarily need to do everything in order. In asynchronous programming, steps can all execute in parallel and/or in really any order.…
Quite a while ago, Salesforce introduced some very significant changes to custom settings. If you aren’t sure what custom settings are please take the time to read my How To Use Salesforce Custom Settings post. This post covers a lot of the changes and when you should start looking at using Custom MetaData Types.…
When developing on Salesforce’s force.com platform it’s essential to avoid hardcoding application settings because a deployment will be required every time something needs to be changed. Application Settings could be anything really, but often it’s things like an email address, ip address, or even a passkey. For those not already aware, a Salesforce deployment can take hours to finally happen which may cause significant downtime in some businesses. …
As many Salesforce Apex programmers know, in Salesforce it’s pretty much an unchallenged best practice that all code should be able to handle bulk inserts, updates, etc. When adhering to this best practice, it’s really common to use sets, or lists as parameters in functions. Sometimes, there’s a need to convert between lists, or sets, or maybe even maps. …
Salesforce task records are basically action items or items on a to-do list. Tasks are commonly logged against relevant records like a Lead, Opportunity, Contact, or Account. Sometimes, depending, on your organization’s data model it may also make sense to log tasks against custom objects. …
Salesforce is an incredibly large and customizable platform with hundreds of different features. Learning to use Salesforce can be difficult, but learning to program and manage Salesforce is even more daunting. Below I’ve provided you with the best resources I could find on programming Salesforce. Before jumping into learning to program apex, I recommend you…
I recently had a requirement to have JavaScript create a cookie and then read it in later by an Apex class. You would think you could simply create a cookie in JavaScript and then read it in Apex using the exact same name as the cookie, but that’s not exactly the case. Cookies that need…
Lately, I’ve been working on a lot of dynamic apex and soql. I had a requirement to develop a custom appexchange app that could be dynamically querying objects based on a mapping that the admin had supplied and had stored in custom settings. Originally, I was querying to see if the field existed and returning…