Skip to main content

Notifications

Announcements

No record found.

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

  • Verified answer
    sathis kumar Profile Picture
    on at
    RE: convert string to list and insert it into dynamic CRM option set.

    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

  • Bhavya Kesaria Profile Picture
    on at
    RE: convert string to list and insert it into dynamic CRM option set.

    hi sathis

    Is it work for CRM online..?

  • sathis kumar Profile Picture
    on at
    RE: convert string to list and insert it into dynamic CRM option set.

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

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at
    RE: convert string to list and insert it into dynamic CRM option set.

    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

  • EmployeeOcta Profile Picture
    2 on at
    RE: convert string to list and insert it into dynamic CRM option set.

    are you writing any of the code for this.

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

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,863 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans