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 :
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
    Abdul Wahab Profile Picture
    12,119 Moderator on at

    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/.../

  • Suggested answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    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
    Bipin D365 Profile Picture
    28,983 Moderator on at

    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.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 74 Super User 2025 Season 2

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 32 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 31 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans