Code Snippet: Run Lead Auto-Response Rules for all Leads

trigger RunLeadAutoResponseRules on Lead (after insert) {

    List<LeadnewlyInsertedLeads = [SELECT Id From Lead WHERE Id IN]; 
    Database.DMLOptions dmo = new Database.DMLOptions();
    dmo.emailHeader.triggerUserEmail = true;
    for (Lead l : newlyInsertedLeads ) { 
        Database.update(l, dmo); 

It’s a good idea to limit this type of trigger to only run for certain types of leads, so a suggestion is to add a check for specific Lead Source, such as LeadSource == 'Web'Read more

Automating Mobile Opt Out from Marketing Cloud to Sales Cloud

A long time ago in a galaxy far, far away…

Or in 2013 to be exact, Salesforce acquired the arguably fledgling marketing automation product known as ExactTarget. Since renaming to Marketing Cloud and rolling this into the Salesforce family, Salesforce have introduced and refined their Marketing Cloud Connect managed package, which allows for integrating Marketing Cloud with Sales & Service Cloud CRM.

Along with improvements to this integration have come many overall improvements and additional features. One such improvement has been with the MobileConnect product, under Mobile Studio. Unfortunately however, integration between Sales Cloud and the MobileConnect side of Marketing … Read more

Create a Mass Delete List View Button in Lightning (without code!)

In the Classic Salesforce user interface, creating a mass delete List View button was quite easy. The old tried and true method involved using Java-script within an execute Java-script / on-click Java-script button, to handle parsing the multiple record id’s (from the selected items in the List View) and performing the deletion. Unfortunately, Java-script buttons are no longer supported in Lightning Experience, and so do not appear as available List View buttons in the Search Layout configuration.

Many people have tried to work around this, usually by using either Apex code or custom Lightning Component. This got me to thinking, … Read more