Unsubscribe Link 3.10

Update: July 30, 2021 Now on the AppExchange!

Flow improved so much in 2020 (yes! a good thing actually happened in this Great-Pacific-Garbage-Patch of a year) that I was able to take out much of the complication of setting up this app.

And thanks to RAD Women Code courses 1 & 2, I was able to add a Visualforce controller and Apex Tests! I am so grateful to my incredible coaches and cohorts.

What matters for you is that it is much easier to install. It’s still not easy to install but hey, it’s 2021. You can handle what life throws at you.

Installation instructions here.

Requires Summer ‘21 and Salesforce Edition: Enterprise, Unlimited, Developer, Performance.

What is the Unsubscribe Link App?

Send an email to anyone from inside Salesforce and include an unsubscribe link right in the email! This app will find all contacts and leads with that email address and mark them “Email opt out.” It will also create an Unsubscribe__c object so you can track unsubscribes over time.

This version has not gone through Salesforce security review and is not on the AppExchange. To install the older version that meets those requirements, go here.

To Uninstall the Older Version

If you have any Unsubscribe__c records from using this package, you’ll lose them by uninstalling.

  • Deactivate the Flows: Unsubscribe Link, UnsubscribeContactsv1, UnsubscribeLeadsv1.
  • Open the record for your Site.
  • From Setup, search for “Installed Packages” and uninstall.

Fixes I’m Proud Of

I moved as much of the configuration to Custom Metadata Types as possible. Flows and Visualforce pages look at the CMDT for values so the user only has to put in correct values in one place.

The error emails should be much more helpful now.

Did I mention I included Apex Tests and a Visualforce page with a controller?!

I fixed the confusion of fields called Unsubscribe_Link__c on both the Contact and Lead so that’s no longer a manual step.

More details about updates available in the instructions.

Published by

JessieRymph

Jessie joined Salesforce.org in 2018 to give introductory webinars to nonprofit customers. She now is a Senior Solution Developer supporting nonprofits and education customers at Salesforce. All opinions expressed on this blog are her own or those of the contributors. She's spent 17 years more or less in CRMs and databases, but didn't meet Salesforce until 2011. Jessie co-led the Seattle Salesforce Nonprofit User Group in 2015-2016. She wrote a sh*tty first draft of a novel and hopes to turn it into a screenplay!

2 thoughts on “Unsubscribe Link 3.10”

  1. This is so awesome! I finally have a use case, and installed it today. Your instructions are great, clear, helpful. Thank you!!

Leave a Reply