Category: Salesforce

  • Best Practices for Exception Handling in Salesforce Apex

    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.

  • Salesforce Developers Need to Learn JavaScript Today

    Salesforce Developers Need to Learn JavaScript Today

    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.

  • What is Salesforce Lightning

    What is Salesforce Lightning

    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.

  • Tracking Why a Lead or Opportunity is Unqualified or Lost

    Tracking Why a Lead or Opportunity is Unqualified or Lost

    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.

  • What’s the Difference Between Before and After Triggers

    What’s the Difference Between Before and After Triggers

    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.

  • How I became a Salesforce Developer

    How I became a Salesforce Developer

    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.

  • How to Automatically Convert Leads in Apex

    How to Automatically Convert Leads in Apex

    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 […]

  • What’s the difference between a Lead and Opportunity?

    What’s the difference between a Lead and Opportunity?

    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 […]

  • Best Practices for Salesforce Lead Sources

    Best Practices for Salesforce Lead Sources

    “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.

  • Deleting Stuck Jobs Via Salesforce Apex

    Deleting Stuck Jobs Via Salesforce Apex

    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: Enforcing Security in Apex

    Salesforce: Enforcing Security in Apex

    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 […]

  • First Application Posted On the AppExchange

    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.

  • Asynchronous Programming in Salesforce

    What is Asynchronous Programming? 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 […]

  • How to Use Salesforce Custom Settings

    How to Use Salesforce Custom Settings

    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 […]

  • Apex: Converting Lists to Sets, and Sets To Lists

    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, […]

  • Everything you need to know about creating Tasks in Salesforce Apex

    Everything you need to know about creating Tasks in Salesforce Apex

    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. In this post, we cover how to automatically create a task in Apex.

  • 5 Incredible Resources For Learning to Program Salesforce

    5 Incredible Resources For Learning to Program Salesforce

    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 […]

  • How to read cookies set by JavaScript in a Salesforce Apex Class

    How to read cookies set by JavaScript in a Salesforce Apex Class

    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 […]

  • Apex: How to Dynamically Tell if a Salesforce Field Exists

    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 […]