25 Aug’17

Dynamics 365, EnterpriseOData API – Exposing Data Entities in D3FOE (Part 1)


In this blog article, we will see how we can expose standard and custom data entities using OData Client code generator to OData API for CRUD operations.


  1. Install OData Client Code Generator v4
  2. Create new Project
  3. Execute the OData Client code.

1. Install OData Client Code Generator v4:

  • Open Visual Studio.
  • Go to Tools -> Extensions and Updates
  • Go to Online Fast Tab -> Visual Studio Gallery -> Type ‘OData V4 Client Code Generator’
  • Click Download.
  • In the VSIX Installer dialog box, Click Install.
  • After Installation, it will ask you to restart the Visual Studio. Click Restart now.

2. Create new Project:

  • Click on new Project.
  • Go to Visual C# -> Windows -> Select Console ApplicationNote: Client Code Generator can work with any project.
  • Enter details and click OK.

3. Execute the OData Client code:

  • In Solution Explorer, right click the solution. Go to Add -> New Item.
  • Select OData Client. Click Add.
  • You will see 2 files added in the solution. Open the file with .tt extension (Text Template). In the file, update the Metadata URI.

  • Save and execute the .tt file. You can see a .cs file generated under the .tt file.


This will generate a code that exposes all the Data Entities of D365 Operations. You can use this generated code for CRUD operations. In the next part, we will see how to use this generated code to read and write data in tables using exposed data entities.

Written by

Sohagani Shah

ERP Developer

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.

Want to streamline your business processes?

  • This field is for validation purposes and should be left unchanged.

Recent Articles

  • Dynamics 365 Client Diagnostics

    15 March’ 2018

    Main cause of Performance Issues: Bandwidth and latency are the primary characteristics which affects the performance o...

    Read more
  • Closing Blind Shift in MPOS and CPOS in Dynamics 365 for Retail

    15 March’ 2018

    Manual For closing Blind shift in POS: Blind shifts terminate the currently ongoing shift and when logged in a new shif...

    Read more
  • Persistent Filters in the Power BI Service

    13 March’ 2018

    Introduction: The feature is finally release, and it is power BI has announced general availability of persistent filt...

    Read more
  • Cause and Solution for Scribe MSMQ not receiving Message from AX

    10 March’ 2018

    Issue: Microsoft Message Queuing (MSMQ) service running on Server might be unable to receive messages. Therefore, messa...

    Read more
  • User Privileges on SharePoint – D365 Document Integration

    10 March’ 2018

    Overview: Often, we wonder what could be wrong where we see a generic error on Documents in Dynamics 365. Something lik...

    Read more