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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

convert string to list and insert it into dynamic CRM option set.

(0) ShareShare
ReportReport
Posted on by

Hello,

I wanted to convert a field from string to Option set AND insert it into in dynamic CRM entity.
So please help me
if anyone knows how to do that..

Entity accountEntity = new Entity("new_categoryoption");
accountEntity["new_categorylist"] = dt.Rows[i][1].ToString();


*This post is locked for comments

I have the same question (0)
  • EmployeeOcta Profile Picture
    6 on at

    are you writing any of the code for this.

    put the code here , so that it will be easy to work on it.

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    Hi Bhavya,

    Once a field is created, you can't convert the type.  You have two options as workarounds.

    1. Create the OptionSet field, hide the existing string field, perform a data migration process to move the data from string field to OptionSet field.  You may also need to change all other workflows and plugins.
    2. Create the OptionSet field, hide string field.  When a item from the OptionSet is selected, use JavaScript to populate the string field.  With this option, you don't have to change existing plugins and workflows.

    Cheers,

    Nadeeja

    If the answer solves your problem, please mark as Verified. Thanks.

    My Blog: http://dyn365apps.com/ - Follow me on Twitter: https://twitter.com/dyn365apps

    LinkedIn: https://www.linkedin.com/in/nadeeja

  • sathis kumar Profile Picture
    on at

    Hi Bhavya,
    Perhaps this tool may help if it still supports:
    https://optionsetmanager.codeplex.com/

  • Bhavya Kesaria Profile Picture
    on at

    hi sathis

    Is it work for CRM online..?

  • Verified answer
    sathis kumar Profile Picture
    on at

    No , Currently it doesn't support CRM Online.. But since you have source code in the codeplex... you can change the code which will work with CRM Online

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Varsha deshpande Profile Picture

Varsha deshpande 5

#2
JS-09031509-0 Profile Picture

JS-09031509-0 3

#3
Ciprian  P Profile Picture

Ciprian P 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans