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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
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

(0) ShareShare
ReportReport
Posted on by

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
    11,323 on at

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
11manish Profile Picture

11manish 75 Super User 2026 Season 2

#2
Travis South Profile Picture

Travis South 45

#3
Syed Aqib Raza Profile Picture

Syed Aqib Raza 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans