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

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

Convert Fetchxml Or Query Expression to OData Query via c#

(0) ShareShare
ReportReport
Posted on by 15

Dear Folks, 

Is there a request / way  to convert Fetch XML to OData Rest quey, dynamically? 

when user try to query Advance find, i will able to retrieve the query, now i need to convert this query to OData need to fetch records from external system. (For Virtual Tables).

Do let me know your suggestion to handle above scenario dynamically. 

Thanks,

Parthiban.T 

I have the same question (0)
  • Suggested answer
    Bipin D365 Profile Picture
    28,983 Moderator on at
    RE: Convert Fetchxml Or Query Expression to OData Query via c#

    Hi,

    I remember fetchXml builder has the feature to convert fetchXml to odata query.

    So you need to look at the source code which is available on GitHub.

    github.com/.../FetchXMLBuilder

    You many have to copy the code and add in your plugin.

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at
    RE: Convert Fetchxml Or Query Expression to OData Query via c#

    Hello,

    If you have FetchXml in-place, you have no need to convert it to OData format because you can use FetchXml query itself - docs.microsoft.com/.../retrieve-and-execute-predefined-queries

  • Suggested answer
    Abdul Wahab Profile Picture
    12,119 Moderator on at
    RE: Convert Fetchxml Or Query Expression to OData Query via c#

    Hi Parthiban Thirunavukkarasu,

    Please use Fetch XML Builder in XRM Tool Box.

    If I answer your question then please mark it as verified.

    Let me know if I can provide you with more details.

    Thanks
    Regards,

    Abdul Wahab
    Power Platform/Customer Engagement Developer/Lead/Solution Architecture/Project Manager
    Direct/WhatsApp:+923323281237
    E-mail: abdulwahabubit@outlook.com
    Skype: abdul.wahabubit
    Linkedin: www.linkedin.com/.../

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 258

#2
MVP-Daniyal Khaleel Profile Picture

MVP-Daniyal Khaleel 172

#3
Tom_Gioielli Profile Picture

Tom_Gioielli 116 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans