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
you need to be on April release
Hi, we dont see these options in the form summary tab. Is there anything special to activate to see it?
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" } } }
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:
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
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.
Hope this helps
BR
Elena
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
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
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
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.
2. In subscription center page, I subscribed to two newsletter lists.(By default there was no any subscription for my test recipient.)
3. After half a minute, two confirmation were sent to test recipient:
Confirmation for HTML Email design newsletter:
Confirmation for Integration with Power Automate newsletter:
4. After I clicked "I confirm" button, a new tab will be opened the custom "thank you" page.
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
André Arnaud de Cal...
291,979
Super User 2025 Season 1
Martin Dráb
230,848
Most Valuable Professional
nmaenpaa
101,156