Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Answered

Thank you Email after every form submitted

(0) ShareShare
ReportReport
Posted on by 205

Hello, 

I have the subscription page where people can subscribe to my newsletter. 

I want to send them thank you for subscribing every time the submit a request but my journey is only sending the email once since it is a duplicated email. 

Is there a way to send an email for every submission?

Thank you, Elly

  • Suggested answer
    Petit Hibou Profile Picture
    Petit Hibou on at
    RE: Thank you Email after every form submitted

    you need to be on April release

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Thank you Email after every form submitted

    Hi, we dont see these options in the form summary tab. Is there anything special to activate to see it?

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Thank you Email after every form submitted

    Hi Elly and Philipp,

    I came up with another idea to send thank you email after each form submission.

    We can create a flow and add "When a HTTP request is received" action, which is very similar to HTTP request trigger in Azure logic app,

    however, compared with Azure logic app, the benefit is that no extra subscription plan is required to do it in flow directly.

    Please take overview:

    The action will create a custom API endpoint for us, we can call it with our request data and get our data in output.

    What we need to do is building a sample JSON schema to receive data and generate output.

    e.g:

    {
      "type": "object",
      "properties": {
        "message": {
          "type": "string"
        },
        "mailbox": {
          "type": "string"
        }
      }
    }

    pastedimage1587377117283v2.png

    I sent a simple ajax post request to generated endpoint.

    var body = {
        "message": "Iam clofly",
        "mailbox": "123@mao.com"
    }
    
    $.ajax({
        url: 'https://xxx.logic.azure.com:443/workflows/981f3c6ca56c441eb3b8f2dec460f118/triggers/manual/paths/invoke?api-version=2016-06-01&sp=/triggers/manual/run&sv=1.0&sig=8xCE292mKJ_dzfQ86egs86uv-H8jBCZ9AD46Dt3v33Y',
        type: 'post',
        dataType: 'json',
        contentType: 'application/json',
        data: JSON.stringify(body),
        success: function( data ){
            console.log(data);
        },
        error: function( errorThrown ){
            console.log( errorThrown );
        }
    });

    Result:

    We can get property data easily from output:

    pastedimage1587377181506v3.png

    So the solution would be:

    1. Create such flow to send email to contact.

    2. Call the endpoint at form onSubmit event. (See the tutorial https://docs.microsoft.com/en-us/dynamics365/marketing/developer/marketing-form-client-side-extensibility)

    It's easy to get input fields data and assign them to custom property.

    I don't test it, but it shall works.

    In addition, we can add a custom field to form to save validation data and send it with other submission information,  

    then check the value with condition action, which could help us prevent malicious URL request.

    Regards,

    Clofly

  • Verified answer
    Petit Hibou Profile Picture
    Petit Hibou on at
    RE: Thank you Email after every form submitted

    Hi Elly-Farokhi,

    in April release, you can set up different confirmation emails templates and thank you pages based on a new form-level double opt-in functionality (see below)

    with that, you will be able to define different confirmation email templates eg for whitepaper and newsletter subscription.

    pastedimage1586441707314v1.png

    Hope this helps

    BR

    Elena

  • cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Thank you Email after every form submitted

    Hi Elly,

    Currently there is no OOB setting to do it.

    You could create a HTTP Request Trigger with Azure Logic Apps, integrate it with "Send email to Outlook" action in Power Automate.

    Once form is submitted(at "afterFormSubmit" event with Marketing Form APIs), call the generated URL to send email.

    Regards,

    Clofly

  • Philipp Focust Profile Picture
    Philipp Focust 145 on at
    RE: Thank you Email after every form submitted

    Hello Elli,

    what you could try, as I also had some similar requirements to deal with, build a flow with Trigger on msdyncrm_marketingformsubmussions.

    You will retrieve already the customer ID and know if it’s a new or existing contact.

    Then in your flow create a new static segment with this customer followed by a new customer journey with that static segment as trigger. The customer journey includes the relevant marketing email. In the Flow you can already set that journey live, by giving it the correct status reason.

    In order to keep the system clean, implement a wait step and then stop both, segment and journey and delete them in the correct order.

    Best regards,

    Philipp

  • Elly-Farokhi Profile Picture
    Elly-Farokhi 205 on at
    RE: Thank you Email after every form submitted

    Hello Cofy,

    Thank you for your help,

    But this solution won't meet my requirements because I want to send a different confirmation email when people submit different forms.

    Like if they subscribe for newsletter I will send them a simple thank you email. I don't want them to confirm their subscription.

    Also, we have a different whitepaper and I will send them white paper link by email every time they request.

    With the current set-up, Each person would receive only one email from a journey which means that they will receive white paper only once, no matter how many times they request.

    When I was using click dimenssion this wasn't an issue because everytime new member would join the journey they would receive thank you email.

    Looking forward to hear your thoughts.

    Thank you,

    Elly

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,202 on at
    RE: Thank you Email after every form submitted

    Hi Elly,

    You could check whether double opt-in feature would meet your requirement. (Here is another tutorial.)

    e.g:

    1. I enable the feature in DefaultMktSettings:

    there are two marketing emails for consent level change confirmation and subscription list change confirmation,

    I set my own web page as "thank you" page.

    pastedimage1586245447298v1.png

    2. In subscription center page, I subscribed to two newsletter lists.(By default there was no any subscription for my test recipient.)

    0601.PNG

    3. After half a minute, two confirmation were sent to test recipient:

    Confirmation for HTML Email design newsletter:

    4137.PNG

    Confirmation for Integration with Power Automate newsletter:

    8030.PNG

    4. After I clicked "I confirm" button, a new tab will be opened the custom "thank you" page.

    pastedimage1586246385476v3.png

    5. After step 4, subscriptions of contact have been updated when I opened subscription center from the link in email again. (same result as screenshot in step 2.)

    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…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

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

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans