Solved

Is it possible to convert a free text field to a drop down list from the current data it has ?

Posted on 2007-11-21
1
599 Views
Last Modified: 2012-05-05
I have a filed in the crm for contact source. since we upgraded from ACT! this field is a free text one so everyone can write what he/she wants. Now I need to convert this field into a dropdown without loosing it's data so that the drop down will contain the text from this field.

thanks
0
Comment
Question by:Biju708
1 Comment
 
LVL 9

Accepted Solution

by:
Biffster007 earned 500 total points
ID: 20330925
Hi,

There's no out of the box way of converting this to a drop down box as far as I'm aware.

What I would do, which is a bit long winded but will work, is:

1) Extract a list of all the distinct contact source text values for this field.  Store these in a table in a temporary database.
2) Extract a list if the contact GUID and it's associated contact source and store in another table in the temporary database.
3) Remove the Contact Source field from the contact form in CRM.
4) Delete the contact source field.
5) Create the contact source attribute again with the same name as a picklist.
6) Add the distinct values of the contact source extracted in step 1 as picklist values.
7) Add the values to each item in the picklist to the table created in step 1 so each name has an associated value.
8) Join the table created in step 1 with the values to the table created in step 2 on the contact source field.  This will give you a contact guid and contact source value combination.
9) Then you could do 1 of 2 things:
   a) Supported - You could write a DotNet assembly to update the contact source field of the contacts with the new picklist value.
   b) Unsupported - You could update the database directly.

As I said long winded but it will work.
Hope this helps.,

Che,
MH
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

On Sep 22nd 2014 Microsoft released Update Rollup 1 for Microsoft Dynamics CRM 2013 Service Pack 1 and back in July Update Rollup 3 was released.  So we now have:   Update Rollup 1Update Rollup 2Update Rollup 3Service Pack 1Update Rollup 1 for S…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question