How to open new record with prepopulated field values

A few days ago, I needed to embed a link of new record of a table with few columns prepopulated in an email. This is how you can do it:

Let’s say I want to open new record/form of feedback table with prepopulated title and description. To do that, we need to append fields like &extraqs=field1=field1Value&field2=field2Value

We need to make sure to encode everything after extraqs= so that your url would look like below

https://<yourcrminstance>.crm6.dynamics.com/main.aspx?appid=25cca200-ea55-e811-a865-000d3ad0753f&newWindow=true&pagetype=entityrecord&etn=feedback&extraqs=description%3D<value1>%26title%3D<value2>
https://<yourcrminstance>.crm6.dynamics.com/main.aspx?appid=25cca200-ea55-e811-a865-000d3ad0753f&newWindow=true&pagetype=entityrecord&etn=feedback&extraqs=description%3Dsampledescription%26title%3Dsampletitle

Reference for more details and how to open a new record with prepopulated field in JavaScript: https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/set-field-values-using-parameters-passed-form?view=op-9-1

Hope it would be helpful.

Leave a comment

Blog at WordPress.com.

Up ↑