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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Answered

Pass value into marketing form via url parameter?

(1) ShareShare
ReportReport
Posted on by 58
I'm aware of the various prefill options for cookied website visitor, but specifically asking about url parameters. With most form tools, I can easily grab the form Id by inspecting the page, then use a url parameter to set a value in that field when the pages loads.
 
Something like: mywebsite.com/contact?msdyncrm_code-12345=google-ad > passes the value /google-ad/ into a hidden msdyncrm_code field, which then writes to the database. It doesn't appear to work, even with a non-hidden field. It just isn't populating.
 
Am I missing something or is this functionality not supported in marketing forms? Or maybe Outbound but not Real Time?
 
 
 
//
I have the same question (0)
  • RHOU Profile Picture
    4 on at
    We have the exact same requirement. This would allow us to pass the GUID of an existing Lead in order to let the customer update existing fields of their Lead. 
     
    Did you find a solution to this? 
  • DM-10051729-0 Profile Picture
    58 on at
    Nope, no update since I posted the question
  • Venke Borander Profile Picture
    17 on at
    We've tested this recently, and it works fine for forms published on standalone pages. We've used the example code from Microsoft: https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/real-time-marketing-manage-forms#example-2-populate-a-hidden-field-with-a-utm-parameter-value-from-a-url

    The code is placed at the bottom of the <head> section between the </style> an </head> tags. 
     
    Make sure that the feature switch is set to not ignore custom code in marketing forms. 
  • Verified answer
    Petr Jantac Profile Picture
    Microsoft Employee on at
    Hello,
     
    This scenario is supported in real-time marketing forms. You can use JavaScript to parse the value from URL and update a hidden field in the form with that value.
    Important: Make sure you place your JavaScript into the <head> section. Otherwise it will be removed. Also make sure that the JavaScript toggle is enabled in Settings->Feature switches:
     
    Petr

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 Launch!

Jump in, show your community spirit, and win prizes!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Nagaraju_Matta Profile Picture

Nagaraju_Matta 102

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 71 Most Valuable Professional

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 66 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans