Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Unsubscribing Contacts with same email address?

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
    Darrien 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
    Nya 29,056 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

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans