Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to create dynamic filters for Query Expression from FetchXML in C#

(0) ShareShare
ReportReport
Posted on by 170

Hi,

I have a fetchXML ready with some condition attributes. I want to create filters for query expressions dynamically by using the conditions applied in FetchXML. I am using MSCRM SDK in c#.

Please let me know if you have any idea about this implementation.

Thanks.

*This post is locked for comments

  • Verified answer
    MSCRM learner Profile Picture
    MSCRM learner 170 on at
    RE: How to create dynamic filters for Query Expression from FetchXML in C#

    Hi Alex,

    Thank you so much for your reply. It worked.

  • Verified answer
    ashlega Profile Picture
    ashlega 34,477 on at
    RE: How to create dynamic filters for Query Expression from FetchXML in C#

    Hi,

     if you want to figure out how that QueryExpression should look like, try converting FetchExpression to a QueryExpression (FetchXmlToQueryExpressionRequest):

    msdn.microsoft.com/.../hh547457.aspx

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans