web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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.

  • Suggested answer
    Nya Profile Picture
    29,064 on at

    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

  • Darrien Profile Picture
    on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 109 Super User 2026 Season 2

#2
Syed Aqib Raza Profile Picture

Syed Aqib Raza 88

#3
ParthPatel249 Profile Picture

ParthPatel249 82

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans