Skip to main content

Notifications

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

Send E-Mail when an existing Contact is already member of the subscription list

(0) ShareShare
ReportReport
Posted on by 25

Deal all,

 

Business Scenario:

Using Dynamics 365 Marketing in a Multichannel scenario can result in a situation when a Customer registers for a newsletter (Subscription list) where he is already a member of.

This can happen for example when utilizing the Newsletter Registration with a webshop. The Customer can decide not to register at the webshop but place the order as a guest user / guest customer.

He can register also for a Newsletter when placing the order. Each Guest Customer is separate record from the financial perspective.

 

Process:

When a Newsletter-Registration is placed on a Marketing-Website, the Duplicate-Detection of D365 Marketing verifies during the registration-process (e.g. with the E-Mail-Address) if a record is already existing in the Database and if the record is a member of the subscription list. If true, the process will not add the record a second time or see (in my case a Double opt in email, due to law requirements). That good.


Requirement:

If the application identifies that for the Contact-records is already member of the subscription list, I would like to send an email to the Customer telling him that he has registered for our newsletter, but he is already a member of the newsletter-list.

Question is: How to do that ? 



cheers


Ark

  • Suggested answer
    makova Profile Picture
    makova 310 on at
    RE: Send E-Mail when an existing Contact is already member of the subscription list

    Hi AHoegen,

    Thank you for your callout regarding documentation. We will review the page and add more context to it based on your suggestion.

    Please mark the thread as answered if your questions were answered and you don't need further assistance.

    Thank you

    Best Regards

    Martin Kovac, Dynamics 365 Marketing Engineering team.

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Send E-Mail when an existing Contact is already member of the subscription list

    Hi AHoegen ,

    Have you achieved it with Flow?

    I created a demo and it works well:

    pastedimage1573036775941v2.png

    pastedimage1573036673360v1.png

    But it seems that we couldn't specify condition when a record is created,

    but we could add another check condition component to specify whether the new record is from marketing form because the source marketing form field will be populated automatically.

    Regards,

    Clofly

  • AHoegen Profile Picture
    AHoegen 25 on at
    RE: Send E-Mail when an existing Contact is already member of the subscription list

    Thanks Clofly Mao,

    your approach is good - but its related to the duplicate detection of CRM / CE.

    When information ist added not in the App but (in my case) via a marketing page the duplicate detection of Dynamics Marketing itself is used and not the one from CE.

    Link: https://docs.microsoft.com/en-us/dynamics365/marketing/business-management-settings#duplicate-detection-rules

    The documentation regarding this feature is very weak but we could achieve some conclusions through testing:

    1. Dynamcis Marketing Detection happens in Insights (Markting) - not in CE itself.

    2. The duplicate detection does not create the 2nd record first and then triggers the duplicate check - it triggers the check when the user enters the data and sends it from the webpage. It also indicates that it does not use the CRM API for that.

    The wording on the link above also states this behavior: (...) A record is created or updated: The system checks for duplicates when a user enters or updates records. (..)

    Your suggested solution using flow seems for me a good solution - if the necessary action / step is available to trigger on this event.

    regards

    Ark

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Send E-Mail when an existing Contact is already member of the subscription list

    Hi AHoegen,

    From your description, were your integrating marketing form into your own CMS website ?

    In my thought, there would be 2 methods:

    1. Create a plug-in, add duplicate detection and send email action in it for input contacts.

    Entity contact = (Entity)pluginContext.InputParameters["Target"];

    then work with RetrieveDuplicatesRequest class:

    var request = new RetrieveDuplicatesRequest
    
    {
    
    BusinessEntity = contact,
    
    MatchingEntityName = contact.LogicalName,
    
    };
    
    var response = (RetrieveDuplicatesResponse) service.Execute(request);

    Once response.DuplicateCollection.Entities.Count > 0, then send email to input contact, finally throw an error to break creation.

    step 1: how to build plug-in:

    https://carldesouza.com/creating-dynamics-crm-plugin-from-scratch/

    step 2: work with RetrieveDuplicatesRequest:

    https://www.inogic.com/blog/2015/11/use-retrieveduplicaterequest-in-dynamics-crm/

    https://community.dynamics.com/crm/f/microsoft-dynamics-crm-forum/179300/how-get-name-of-duplicate-detection-rules-in-the-plugin/441914

    step 3: send email request:

    https://carldesouza.com/send-dynamics-365-email-using-c/

    2. Achieve it in Flow:

    While start point is still when a record is created in marketing application.

    https://powerusers.microsoft.com/t5/Microsoft-Flow-Community-Blog/Delete-duplicate-records-items-from-Dynamics-365-CRM-CDS/ba-p/334853

    Regards,

    Clofly

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,111 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,934 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans