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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

checkbox items to multi select option list

(0) ShareShare
ReportReport
Posted on by

Hi,

I am creating an aspx page from which i have to pass data to CRM portal using organization service. I am having checkbox items which should be pass the selected items to an entity having the field multi select option list. Can you please suggest me how to do that ?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    See the following link on updating multiselect optionset:

    docs.microsoft.com/.../multi-select-picklist

    The logic is as follows::

    OptionSetValueCollection activities = new OptionSetValueCollection();

    activities.Add(new OptionSetValue(1)); //Swimming

    activities.Add(new OptionSetValue(9)); //Camping

    Contact contact = new Contact();

    contact["firstname"] = "Wayne";

    contact["lastname"] = "Yarborough";

    contact["sample_outdooractivities"] = activities; // multiselect optionset

    _serviceProxy.Create(contact);

    Hope this helps.

  • Anandhcrm Profile Picture
    on at

    Thanks for your suggestion. I think OptionSetValueCollection available in sdk v9.0. But i am using sdk v8.2. Is it possible to download v9 dll ?

  • Suggested answer
    Community Member Profile Picture
    on at

    Yes you should use v9 and .net framework 4.6

  • Suggested answer
    Aric Levin - MVP Profile Picture
    30,190 Moderator on at

    If you are on Dynamics 365 v9 (since you are using multiselect option sets), you should use the v9 sdk.

    See the link below to download sdk:

    docs.microsoft.com/.../download-tools-nuget

    You can also get the tools from github already prepackaged:

    http://xrm.tools/SDK

    Hope this helps.

    Aric

  • Anandhcrm Profile Picture
    on at

    It worked perfectly. You are great... Thank you so much :)

  • Anandhcrm Profile Picture
    on at

    I am having one more query...

    I am inserting records to Account entity. I am having few contact details associated with each account which should be inserted into Contact entity. I have created lookup field for account in Contact entity. From aspx page, how I can achieve this...

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans