Skip to main content
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Unsubscribing Contacts with same email address?

(0) ShareShare
ReportReport
Posted on by

I am using the default marketing page and default subscription centre form for handling unsubscribes of Contacts. A user can select the unsubscribe link from our marketing emails which will take them to our default marketing page where they can select the do not email box and submit the form to unsubscribe. This updates the contacts as expected. However I also want to make sure any other contacts that share the same email (possible duplicate contact or family member with shared email) to also get updated to no longer receive emails. I believe we could achieve this with a landing page form but I would like to keep the form type as a subscription centre so that the user can only access the page from an emailed link to prevent unsubscribing other contacts. I have set up a power automate flow to update contacts with a given email that gets called via JavaScript when the form is submitted however that still makes it possible for someone to unsubscribe other contacts if they find the endpoint within the JavaScript code on the web page. We would like to include the contact ID in the JavaScript call to prevent that however since the contact ID is a unique identifier it doesn't seem to allow us to add it to the form. Is there any way to retrieve the contact ID for the contact connected to the current subscription centre form without allowing it to be an editable field? Otherwise any other suggestions to achieve this same result would be appreciated.

  • Darrien Profile Picture
    on at
    RE: Unsubscribing Contacts with same email address?

    Yes I have already done that within power automate. My question was regarding triggering it. Since I need to trigger the flow through JavaScript on the marketing page that leaves the flow endpoint open for someone else to make calls to it with other emails they should not be unsubscribing. We would like to include the contact ID and email address in the call to the flow to ensure  they can only unsubscribe the contact they have open in the subscription centre form. Is there a way to retrieve the Contact ID within the Subscription Centre form? It doesn't allow me to add the field since it is a unique identifier of the Contact and I haven't been able to find any other way to get it.

  • Suggested answer
    Nya Profile Picture
    29,060 on at
    RE: Unsubscribing Contacts with same email address?

    Hi,

    How about to list the contacts who have the same email with the unsubscribed contact with Automate?

    1. Get the updated contact record first.

     pastedimage1618387504015v1.png

    1. Add a condition to determine if their update is ticked with the do not email box.

     pastedimage1618387511293v2.png

    1. If yes, list all the contacts with the same email address.

     pastedimage1618387544220v3.png

    1. Remove them from the subscription list.

     pastedimage1618387550441v4.png

    If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.

    Best Regards,

    Nya

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Holly Huffman Profile Picture

Holly Huffman 103

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 96 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 51 Most Valuable Professional

Product updates

Dynamics 365 release plans