How to Include an Unsubscribe Link, Revised

Revision notes

I have revised this one to submit for security review with the AppExchange. With security improvements to Sites in Winter ’20, I’ll need to add additional improvements very soon.

Now includes Leads as well as Contacts. Includes Custom Metadata instead of hardcoding emails in the Flow.

Allow Recipients to Unsubscribe from All Emails

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

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

Please try this in your sandbox or a Trailhead playground first! I cannot figure out how to test it in a developer edition! Continue reading →

Winter ’20 Flow Improvements & Disappointments

Oh man…so much good stuff in the new release. And a real bummer.

Add a lookup component in Flow

I’m really disappointed about this. I was confusing “lookup” with “search.” I want to search for any record I want and get a list returned. Nope. I can search using any lookup field I already have. This is good, but not quite what I was thinking.

RIP Bailey Bones, my beloved companion of 14 years.

Unsatisfying use case : A dog turned in at the animal shelter has a microchip number (text field) which I want to use to search for potentially matching dogs. I want to look up a dog in my flow then process their intake at the shelter.

  • Possible solution: I could do this if I had the microchip number in the name of animal, like Bailey 238392, and I looked it up to the animal record from say, an adoption record. It has to already be a lookup field.

Satisfying use case: Let’s say I am processing an animal record for adoption. From the animal’s record, I can lookup the Contact record of the person who is adopting the animal as part of my animal adoption flow.

Note: you can do a work around for this kind of search. Thanks Jenwlee.

Continue reading →

Was it worth my time to automate that? On the AppExchange!

Thanks to everyone who expressed an interest in my June 5, 2019 post “Was it worth my time to automate that?” The solution is now available on the AppExchange from Salesforce Labs! Check it out!

Have you ever wondered:

  • How much time am I saving with this automation?
  • How many times has this process ever fired?
  • Was the time I spent building this thing worth the investment?
  • Are the people who requested this automation actually using it? If not, who is?

Continue reading →

Intro to Flow at Forcelandia

At Forcelandia this year, I explained why we have to “get records” and why we use record variables with this analogy of ordering at a coffee shop with a robot.

Continue reading →