How to Include an Unsubscribe Link

Follow this tutorial to include an unsubscribe link in promotional emails sent from Salesforce. My last post gives you some reasons for considering this feature.

131206-f-it851-005

So…you did that directly in production. I see…

When the recipient clicks to unsubscribe, a flow will look for ALL CONTACTS (not leads) who have this as their preferred email address (if you’re in NPSP) or in the Email field. All contacts who meet that requirement will be marked “Email Opt Out.”  The email address owner will receive one confirmation email immediately.

For goodness sake, please try this in your sandbox or a Trailhead playground first!  Continue reading →

When to Include an Unsubscribe Link

The benefits of sending email directly from Salesforce are that you can automate when they go out, you can send up to 5,000 emails per day, and email templates are really simple to set up.

woman using white smartphone on front of table

Dear Asses and Donkeys Trust, I no longer want to receive your email. XOXO, Belinda

But any time you’re emailing groups of people, you should be mindful of the requirements of the CAN-SPAM law (which I just learned isn’t called the “Canned Spam” law). CAN-SPAM requires that emails, in certain scenarios, provide an option for the recipient to unsubscribe.

I am writing to you on my personal blog as a puzzle-solving Salesforce admin, not a Salesforce employee. Your decisions around unsubscribe options can have legal implications for your organization so please do not take anything from this post as legal guidance or means to make your communications legally compliant.  That decision is between you and your lawyers.

Continue reading →

Use Custom Permissions To Bypass Validation Rules And Pass Unit Tests

Picture this… it’s already 9pm on deployment night (Friday night of course). You’ve pushed to three environments already and spent at least three hours resolving unit test failures. If all your tests pass this time, you can go home and enjoy a well deserved hot cocoa….

THEN THIS HAPPENS:

Unit Tests Fail

FIELD_CUSTOM_VALIDATION_EXCEPTION

Someone else deployed a Validation Rule that is causing almost half your unit tests to fail, effectively ruining your weekend and destroying all your dreams. Has this ever happened to you? Well you’re not alone…

Continue reading →