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 :
Dynamics 365 Community / Forums / Sales forum / Filter Option set depe...
Sales forum

Filter Option set depending upon the another option set

(0) ShareShare
ReportReport
Posted on by 619

I am using Dynamics 365 V9 online instance. I would like to know how to filter option set depending upon another option set value. I have used SDK.DependentOptionSet and XML for filtering.  Now, Dynamics 365 V9 deprecated SDK libraries. Is there any other way can do filtering in D365 V9 instance. 

In the below link, they have mentioned about "Dependent option set generator".  Is it supported way.

https://crmoptionsets.azurewebsites.net/

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

    It seems like the dependent option set solution (in your link) has been updated to v9. Make sure that you download the managed solution for v9.

    It is hard to know what Microsoft has in store for us in regards to having an OOB solution for this, but I think this is a great solution in the meantime.

    Also, this works for Multiselect Optionsets as well.

    Hope this helps.

  • Saratha Profile Picture
    619 on at

    Hi Aric,

    I am not using third party solution in my customization.  Because during Microsoft Dynamics 365 upgrading time, some of the third party solution won't support Dynamics 365 features. So I would like to know that this is third party solution or Microsoft released it.

  • Suggested answer
    Adrian Begovich Profile Picture
    1,027 Moderator on at

    Hi Saratha,

    You can achieve this with a JavaScript function that runs when the values on the option set fields change. The JavaScript function will need to check the value of the second option set field and filter the first option set field accordingly.

  • Suggested answer
    LeoAlt Profile Picture
    16,331 Moderator on at

    Good day partner,

    You could use Business Rules to achieve this requirement without coding.

    For example, I have two option set fields "OptionA" and "OptionB", When I choose "A" in "OptionA", I want "OptionB" set value to "1".

    community370.png

    community370.png

    community372.png

    Hope it helps.

    Best Regards,

    Leo

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

    Hi Saratha,

    This is a third party solution release by Guido Preite, one of the long time Microsoft Dynamics 365 MVPs.

  • Saratha Profile Picture
    619 on at

    Thanks for the confirmation Aric.

  • Saratha Profile Picture
    619 on at

    Hi Leo,

    Thanks for the response.  According to your solution, we can set only one default value for another option set. But I would like to filter multiple values in the another option set.

  • LeoAlt Profile Picture
    16,331 Moderator on at

    Hi Saratha,
    If you mean you want set if optionA="A"or"B"or"C" and then optionB="1", it is also possible with Business Rules.
    You just need to set your filter conditions and apply them. For example, let's follow this logic:
    If optionA="A"
       then optionB="1";
    If optionA="B"
       then optionB="1";
    If optionA="C"
       then optionB="1";
    This logic could also be understood in this way: if optionA="A","B"or"C", then optionB="1".
    You could match any condition in Business rules.

    Just like this screenshot.

    community373.png

    Hope it helps.

    Best Regards,

    Leo

  • SarfarazNaz Profile Picture
    25 on at

    I think what she means is if option A is selected, then the dependent option set shows multiple values like 1, 2 or 3

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Sales

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans