MICROSOFT DYNAMICS CRM /365 BLOG

This blog aims to provide some technical tips about Microsoft Dynamics CRM 4.0/2011/2013/2015/2016,DYNAMICS 365,Power Platform.

Achievements

  • About Me
  • Services
  • Training
  • Achievements
  • Contact Us

Friday, 15 April 2016

MICROSOFT DYNAMICS CRM 2013 MULTISELECT OPTION LIST

                                                MULTI SELECT OPTION LIST IN MS CRM 2013
16
So you probably found this post as a result of a search for “Microsoft Dynamics CRM Multi Select Option List”, or something similar. Well, I have bad news and good news. This feature is still not a part of the 2013 release, but there is a workaround. No, not that Javascript hack that you found in all the other search results, that’s just gonna break on upgrade. No, its not that Dialog Box trick that seems like a goofy, non-intuitive way to do it. There is a fairly simple way to do this, that is intuitive, and does not use any foreign code that might break later.

Recently we were tasked with a migration from Salesforce.com to Migrations can be challenging for a lot of reasons, but one of them is the fact that Salesforce.com has a multi-select “Picklist” field type. Microsoft’s “Option List” does not have a multi-select capability. But we had to migrate this multi select field over so we had to figure it out.

The Javascript hack that is out there would not work for two reasons, first I do not condone “un-supported” methods and I know it will eventually break, and also we could not map to it properly even if we wanted to use it. Instead we used some in-built functionality that you can see yourself if you look at the Opportunities form. In the default installation, on the right hand side is a box called “Competitors”. This is simply a related lookup of another entity, but allows for the selection and display of multiple competitors. Many of you by now have figured out my “Super Secret” solution. But for the rest of you, here is how it is done:

Two steps: Create a new entity and populate it with your options and add the relationship to the entity you need, then display it on the form where you want it. Let’s take it step by step. Note, I will be showing this in the new CRM 2013 Online, but the same method will work in 2011 or on-premise deployments.

Step One

The first step is to create an entity for your list. You must have the System Administrator or System Customizer role to perform this task.
1. Go to Settings/Customize/Customize the System, click on Entities and then New and you will be presented with the dialog below. Create a display name and a plural name for this “list” and tick the “Settings” area to display so you can access this later for adding items, then click Save and the dialog box will refresh.
1
Now click “Fields” in the left sidebar and scroll down to “new name” and double-click it. New entities are created with a default name, this step is optional but it makes sense to use a relevant name
2
Edit the Display Name label to whatever your list items are called and Save and Close.
3
Back in the Entity Dialog click “N:N Relationships” in the sidebar and click New. Select the entity you want this list to appear in, (I chose Opportunities ) and Save and Close. (Note you can add additional N:N relationships to use this list in other entities, like a global list)
6
Click Save and Close, and Publish all Customizations
[divider]

Step Two

Go back to, in my case, the Opportunities entity, click Forms and double-click the Default Opportunity form, or whichever form you want to add the list to:
5
In the form designer, click in the form block where you want the list to appear, then on the Insert tab click to add a Sub-Grid.
8
Create a name, a label, select the list entity, uncheck chart and click Set, Save and Publish
9
Here you can see the block was added to the form, as you may know you can resize and drag this anywhere you want.
13
Now let’s take a look at our completed Opportunity Form. You can click the image to enlarge.
15
12

Clicking the “+” gives you not only the option to select multiple items that you created earlier in the list, but you can also add new items on the fly which will then be a part of this list.
[divider]

Summary

In my opinion this is much more powerful than a simple multi-select list as each item in the list can be clicked to take you to that item’s information. While I only created an item name, I could have added more fields to the item entity to provide whatever additional information I wanted.
The best thing about this method is that it is “future-proof”, we have not introduced any third-party or foreign code so this will upgrade seamlessly.
In our Salesforce migration we were even able to map a Salesforce.com picklist to this related list lookup with no issues.
Feel free to give me your thoughts on this method in the comments below
Posted by Malla Reddy Dynamics 365 Blog at 04:25:00
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Newer Post Older Post Home
View mobile version
Subscribe to: Post Comments (Atom)

LiveStats

GMR IT SOLUTIONS LIMITED- Proud Sponsor of this blog

GMR IT SOLUTIONS LIMITED- Proud Sponsor of this blog
Microsoft Silver Partner - Business Applications Specialist

Awarded as Top 5th Microsoft Dynamics 365 CE Blogs for 2024

Microsoft Dynamics CRM Blogs

Awarded as Top 6th Blog Microsoft Dynamics 365 Blog for 2023

Microsoft Dynamics CRM Blogs

Awarded as Top 10th Microsoft Dynamics 365 Blog for 2022

Microsoft Dynamics CRM Blogs

Awarded as Top 20 Microsoft Dynamics 365 Blog for 2021

Microsoft Dynamics CRM Blogs

Awarded as Top 9th Microsoft Dynamics 365 Blog for 2020

Microsoft Dynamics CRM Blogs

Awarded asTop 20 Microsoft Dynamics 365/CRM blog 2019

Microsoft Dynamics CRM Blogs

Awarded asTop 20 Microsoft Dynamics 365/CRM blog 2018

Microsoft Dynamics CRM Blogs

Awarded as Top 100 Blog Winner 2017

About Me

Malla Reddy Gurram(MCSA)Helping businesses with technology by delivering services for the Dynamics 365,Office 365, Azure,IoT,PowerBI, PowerApps

Microsoft Certified Professional

Microsoft Certified Professional

Scribe Certified Professional

Scribe Certified Professional

Search This Blog

Blog Archive

  • ►  2025 (26)
    • ►  July (4)
    • ►  June (2)
    • ►  April (1)
    • ►  March (8)
    • ►  February (8)
    • ►  January (3)
  • ►  2024 (217)
    • ►  September (1)
    • ►  August (4)
    • ►  July (29)
    • ►  June (30)
    • ►  May (31)
    • ►  April (31)
    • ►  March (31)
    • ►  February (29)
    • ►  January (31)
  • ►  2023 (282)
    • ►  December (31)
    • ►  November (30)
    • ►  October (31)
    • ►  September (30)
    • ►  August (31)
    • ►  July (31)
    • ►  June (33)
    • ►  May (31)
    • ►  April (32)
    • ►  March (1)
    • ►  February (1)
  • ►  2022 (2)
    • ►  June (1)
    • ►  February (1)
  • ►  2021 (12)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  June (4)
    • ►  February (1)
    • ►  January (3)
  • ►  2020 (18)
    • ►  November (3)
    • ►  October (3)
    • ►  July (1)
    • ►  April (1)
    • ►  February (9)
    • ►  January (1)
  • ►  2019 (50)
    • ►  December (7)
    • ►  November (2)
    • ►  October (2)
    • ►  August (3)
    • ►  July (3)
    • ►  June (7)
    • ►  May (8)
    • ►  April (2)
    • ►  March (6)
    • ►  February (2)
    • ►  January (8)
  • ►  2018 (68)
    • ►  December (13)
    • ►  November (12)
    • ►  October (4)
    • ►  September (7)
    • ►  August (5)
    • ►  July (3)
    • ►  June (4)
    • ►  May (7)
    • ►  April (4)
    • ►  March (3)
    • ►  February (1)
    • ►  January (5)
  • ►  2017 (146)
    • ►  December (18)
    • ►  November (2)
    • ►  October (4)
    • ►  September (25)
    • ►  August (1)
    • ►  July (6)
    • ►  June (9)
    • ►  May (10)
    • ►  March (8)
    • ►  February (36)
    • ►  January (27)
  • ▼  2016 (32)
    • ►  November (1)
    • ►  September (3)
    • ►  August (6)
    • ►  May (2)
    • ▼  April (11)
      • MALWARE CLICKEU.TRACTIONIZE.COM
      • BASIC PLUGIN STEPS IN MS CRM 2013
      • JAVASCRIPT SCENARIO IN MS CRM 2013
      • PLUGIN SCENARIO IN MS CRM 2013
      • DEACTIVATE CONTACT IN MS CRM 2013 ONPREMISES
      • DEACTIVATE ACCOUNT AND DEACTIVATE THE CONTACTS ASS...
      • MICROSOFT DYNAMICS CRM 2013 MULTISELECT OPTION LIST
      • SYNTAX CHANGES FROM MS CRM 4.0 TO CRM 2011 PLUGINS
      • DIFFERENCE BETWEEN CRM 4.0 AND CRM 2011 CUSTOM WOR...
      • ACTIVATE AND DEACTIVATE THE CONTACT RECORD IN MS C...
      • BUSINESS ERROR AFTER SOLUTION DEPLOYED ON TO PROD...
    • ►  March (1)
    • ►  February (7)
    • ►  January (1)
  • ►  2015 (34)
    • ►  December (3)
    • ►  November (12)
    • ►  October (1)
    • ►  September (16)
    • ►  July (2)

Visitors Count

Blog Visitors

Flag Counter

Twitter

Tweets by UK365GUY

Loading...
Awesome Inc. theme. Powered by Blogger.