{Code tip} Open entity form with set values for multi select option set in Dynamics 365

Dynamics 365 has introduced multi select option set field. In one of the recent requirements, it was needed to open a form with pre-set values for multi select option set field.

Following steps are required:

1. For example, Contact entity has a Multi select option set field called Category which has values as following:

Label Integer Value
A 1
B 2
C 3
D 4

2. Following URL can be triggered to open the contact entity form with set values for Category field with A,C and D:

/main.aspx?etn=contact&extraqs=dyn_category%3D%5B1%2C3%2C4%5D&pagetype=entityrecord

 

3. The dynamically generated URL can then be opened using window.open method to open CRM contact form with pre-set values for multi select field:

clip_image002

 

Hope it helps and happy 365ing!

Any problem in CRM – end user,Microsoft  partner or an individual?

Problem Area – Technical, Functional, Training, Development or consulting?

I am here to help, get in touch here: Click here

ABOUT THE AUTHOR:

clip_image001

Twitterhttps://twitter.com/msdynamicsblog
LinkedInhttps://www.linkedin.com/in/deepesh-somani-00296932

Google Play Store:

https://play.google.com/store/apps/details?id=com.dynamicsofdynamicscrm.msdynamicsblog&hl=en

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s