As we've mentioned in this chapter, APIs are extremely useful for integrating external applications with Dynamics 365 Business Central (they permit us to use simple HTTP calls to manage ERP entities and business logic). As an example, here, we will create a C# .NET application that creates Customer records in a Dynamics 365 Business Central SaaS tenant.
This scenario is very useful for implementing custom data loading procedures. By using APIs, you can create very powerful data transfer routines that permit you to load tons of data by avoiding standard tools such as configuration packages.
This application is a .NET Console application that does the following:
- Connects to a Dynamics 365 Business Central tenant by using basic authentication (a username and a web service access key)
- Reads the company in this...