Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

JS on form

Posted on by 140

Can i use a Multi-select option set value form one form and populate it in a another form( in another entity ) using JavaScript?

Any help is greatly appreciated. 

*This post is locked for comments

  • Verified answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: JS on form

    Hi Kalana,

    Rest builder provides you the code which you can use in your JS library and call it accordingly. Are you looking for something else?

    As mentioned above, it doesn't seem possible to select the multiselect optionset value using api.

    Hope this helps.

  • Kalana1985 Profile Picture
    Kalana1985 140 on at
    RE: JS on form

    Thank you Ravi, if any one able to share code snippet of using REST API for JavaScript development in CRM , i would really appreciate that.

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: JS on form

    Hi Kalana,

    It does look like a limitation of multi select along with several other mentioned in the below blog-

    nishantrana.me/.../limitations-of-multi-select-option-sets-in-dynamics-365-ce

    Hope this helps

  • Kalana1985 Profile Picture
    Kalana1985 140 on at
    RE: JS on form

    Thank you all for replying, i was using CRM Rest Builder and im using "Retrieve Single"  Action with a custom entity as a primary entity, what im trying to do here is get a value of Multi select option set and that field is not showing as an option in "fields to select", i couldn't find the multi-select Option-set.   IDK maybe we cant create a REST API for Multi select option set, any thoughts ?

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: JS on form

    Yes, it does work. In fact if you look into the screenshot it has picked up your current CRM version which is 9.0.2.761 :)

  • Suggested answer
    Mahendar Pal Profile Picture
    Mahendar Pal 45,095 on at
    RE: JS on form

    Yes it will work with your deployment.

  • Kalana1985 Profile Picture
    Kalana1985 140 on at
    RE: JS on form

    Thank you so much for responding Goutam, Rest Builder seems awesome, only question i have is does CRM Rest builder working with CRM version 9.0 ?

    010460.Capture.PNG

    it says v0.0.2.761 and that is my CRM version , hope this will work fine.

  • Suggested answer
    gdas Profile Picture
    gdas 50,085 on at
  • Kalana1985 Profile Picture
    Kalana1985 140 on at
    RE: JS on form

    Thanks! for the respond Ravi, im good with JS but new to CRM development, so if you could give me some example of how to get this done, i would immensely appreciate that

  • Suggested answer
    RaviKashyap Profile Picture
    RaviKashyap 55,410 on at
    RE: JS on form

    Yes you can. The value of the multi select option set is stored againt the entity record so you first need to write the JS[Web API] to retrieve the value for the record and then set it in the multiselect on your target entity..

    Please use CRM Rest Builder to build the WEB API request. This is the easiest way to build the query as well as execute it and see the results.

    www.toplinestrategies.com/.../crm-rest-builder-useful-tool-working-crm-2016’s-web-api

    Hope this helps.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans