Reading, writing, and updating data through OData
In this example, we will create a sample OData console application in order to demonstrate how to connect and communicate through OData.
In order to start, you will need to create an application within your organization's Azure ID. You will need the application ID--an official guide as to how to do this is available athttps://ax.help.dynamics.com/en/wiki/dynamics-ax-7-services-technical-concepts-guide/
Getting ready
The following doesn't have to be done in the Dynamics 365 for Operations development virtual machine. However, it will need to have access to the URL.
How to do it...
To import and export data using the Data Import/Export Framework, follow these steps:
- Create a new project but, this time, choose Visual C# from the
Templates
node and then Console Application from the right. Name the projectConODataTest
and place it in theproject
folder that we set up for source control. Ensure that the name space is alsoConODataTest
. - We will now need...