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

How can I add the originating URL for an embedded D365 form to the email that will get sent internally so that they can know which web page the form submission came from?

(0) ShareShare
ReportReport
Posted on by 15

We want to use one form on multiple pages of our site, but still be able to tell which web page a particular submission came from. I know that I can view this information in the Insights > Submissions area of the CRM for the particular form, but I would like to include this information in the email that will get sent to the internal recipient of the submission emails. Any help would be greatly appreciated.

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at

    Hi Michael,

    If you want to send an email with originating page URL to recipient after he/she has been added into Dynamics as contact, then you could refer to following solution:

    Due to Insights data is separate and not available to be used in Dynamics, therefore, we can store form submissions manually by enabling "Store form submission" option of marketing form,

    it will store all submitted data in an entity called "Marketing Form Submission", include matching contact, matching result(create/update), associated marketing form and originating URL of page. 

    1. Go to Marketing form > Summary > Submission behavior, enable the "Store form submission" option.

    2. Sync Marketing Form Submission entity with marketing-insights service by following the guidance:

    https://docs.microsoft.com/en-us/dynamics365/marketing/mkt-settings-sync

    3. Insert a code element to your marketing email, add following expression to content of the code.

    pastedimage1607418667934v1.png

    Please check the originating URL
    {{#each contact.msdyncrm_marketingformsubmission_contact_msdyncrm_matchedcontactid}}
      {{#if (eq this.msdyncrm_marketingformid contact.msdyncrm_marketingformid)}}
           {{# if (eq this.msdyncrm_contactmatchingresult 'Created')}}
             
    {{this.msdyncrm_pageurl}} {{/if}} {{/if}} {{/each}}

    Test 

    r1.JPG

    r2.JPG

    How does the code work:

    1. Step through all marketing form submission records that are related to the contact with for-each loop.

    https://docs.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content#for-each-loops

    2. Check whether associated marketing form of the submission record equals to source marketing form value of the contact.

    3. Moreover, check whether it is the first time submission.(create type)

    4. Display originating URL of the submission.

    (Only host name(company.com) will be logged.)

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 197 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans