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.
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.
- Change the “Active Site Homepage” to any other Visualforce page in your system.
- Deactivate the site. Sorry but you are unable to delete Force.com Sites. (When you install the new package, you can reuse your existing 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.