Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Suggested answer

Populate the FetchXML query expression result as Option Set values on a field in MS D365 Online and use that canvas app

Posted on by Microsoft Employee

I want to auto populate the FetchXML query expression result as Option Set values on a field in MS D365 Online and use that field in a canvas app.

Can Anyone help me with this with full steps? If there is another way to achieve my requirement that also please tell.

Regards,

Sougata

  • Suggested answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,319 on at
    RE: Populate the FetchXML query expression result as Option Set values on a field in MS D365 Online and use that canvas app

    Hi,

    Thank you for your query.

    You cannot fill an optionset dynamically. Optionsets are based on pre-defined values, you can filter existing optionset values using JavaScript on a farm, however you cannot add new values based on a query.

    You can create a lookup for this purpose.

    This means, create an entity with required fields (or just default name field only), create a lookup of this entity and add it on the form.

    You can bind this lookup to a particular view (add you your criteria in this view).

    You can also, bind a fetchxml query with lookup, here are few links for your understanding.

    Special field properties for main forms | Microsoft Docs

    Apply Custom Filter on Lookup Field in Dynamics CRM using Script | Microsoft Dynamics 365 CRM Tips and Tricks (inogic.com)

    Finally, you can use the same entity to show options in Canvas app as well.

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