After the Summer ’25 release, record ids passed from the Unsubscribe Link to the flow are sometimes not being passed to the flow which causes tons of errors. I am so sorry about this!
I do not understand exactly what change has caused this error to happen.
Here’s a quick and dirty fix for this until we finish getting a managed package version created.
What makes it quick and dirty?
I made it quickly. The dirty part is that this fix allows anyone to unsubscribe any other email address from your email list if they have access to the unsubscribe link. People are nuts and they actually do this. You can read more about the security concerns of using recordIds (or email addresses) in this blog post by volunteer Aaron Crosman.
This package has not been through Salesforce security review.
If you have security concerns, please invest in a better solution. The upcoming managed package version corrects this security error, but we are a group of volunteers trying to get some of Salesforce’s valuable time to move this forward, and I can’t guarantee anything.
Upgrade Steps for the Empty Record Ids Issue
This package includes a flow called Unsubscribe Link Upgrade Summer 25. Activate the Flow.
Update the Unsubscribe Link Flow
- Add a new variable called varObject. Make it data type Text, and check available for Input.

- Modify the formula useContactId. Replace the existing formula with
IF(OR({!Contact}=true,{!varObject}='Contact'),{!recordId},"")

- Modify the formula useLeadId. Replace the existing formula with
IF(OR({!Lead}=true, {!varObject}= 'Lead'),{!recordId},"")

- Add a Subflow to the canvas. Select Unsubscribe Link Upgrade Summer 25. Give this element a label and API name. Scroll down to Set Input Values. Toggle the checkmark to on and select OurOrganizationFormula. Click done.

- Delete the orange Assignment element called WrongObject.

- Draw a connector from the Decision Contact or Lead to the new subflow for the outcome No Record Found.

- Draw a connector from the subflow to the pink Create Records element Create Unsubscribe Record.
- Save as a new version and activate.
Next step! Update your Send Email actions because those are broken too. (Sorry).
One thought on “Quick and Dirty Fix to Unsubscribe Link”