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)

Dependent Pick list not working...

(0) ShareShare
ReportReport
Posted on by 26

I have a dependent option set created (the xml and the init).  When I go to the parent field and put something in there, the next field becomes unlocked but has not options listed.  I do have the field(s) in the comma Handler Properties for the parameters and I do have the xml in the parameter section when form loads.  When I check the box for Pass execution context as first parameter, the options now show, but not correctly.  When I uncheck the box, nothing shows in the list again.  I am not getting any errors either. 

Any help is greatly appreciated, thank you.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Ivan Ficko Profile Picture
    1,380 on at

    I had quite a similar problem to this one when I used dependant option sets for the first time. The problem was in wrong formatted XML mappings. Please check if you closed all the XML tags right and to be sure run it in some XML syntax checker tool.

    When they released JSON version of dependant option sets I instantly changed to that one, because it's much better when it comes to creating field mappings. There is less probability to make it wrong in JSON format.

    JSON Version Link

  • USA80 Profile Picture
    26 on at

    Do you recommend a certain XML syntax checker tool?

  • Ivan Ficko Profile Picture
    1,380 on at

    For things like that I just google XML Validator and select the first one You don't need something special most of the validators will do the job just fine.

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

    Not sure if this will help you, but did you check out the Dependent OptionSet Generator by Guido Preite.

    You can download it from: crmoptionsets.azurewebsites.net

    Hope this helps.

  • USA80 Profile Picture
    26 on at

    I used this https://www.xmlvalidation.com/ and it came back saying no errors found, so not sure where the problem is.

  • USA80 Profile Picture
    26 on at

    If I do a JSON, do I put the name of the entity anywhere?  Also, do I put the label in as well?  When looking here:  msdn.microsoft.com/.../gg594433.aspx, I was just confused as to what exactly put in the JSON Script.

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    if you use my Dependent Optionset solution (the one Aric Levin linked) you don't need to create the JSON manually, you can use the generator to create the JSON based on the fields you want to make dependent.

  • USA80 Profile Picture
    26 on at

    Sorry, I am not understanding.  I went to the link and looked at the demo, but where is the generator to create the JSON based on the fields that I want to make dependent?

  • USA80 Profile Picture
    26 on at

    I guess the biggest thing is how is it working, meaning, if I have a parent field, and if they pick 1 of the 5 options in the parent field, then I want the child field to show certain options.

    Your demo, when I looked at it, doesn't reference the entity name, nor does it say the label.  I am not sure if any of this is needed or not, just trying to understand it more, sorry, and thank you.

  • Suggested answer
    Guido Preite Profile Picture
    54,086 Moderator on at

    install the solution first inside your CRM, create an empty configuration ([] js webresource) and open the solution, it will show you the generator and you can create the dependencies based on your entities and fields

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