Exploring the Web API
At times, you may have to interact with the Dataverse Web API inside your code component. For example, let's say you have a Primary Contact defined on an account, but you want to update that contact information on the account form itself. So, you create a code component that will show all the relevant information about that contact on the account, but also allows you to update their contact information. In order to update the primary contact, you will have to utilize the Dataverse Web API. The framework provides five functions for interacting with the data in Dataverse: createRecord, updateRecord, deleteRecord, retrieveRecord, and retrieveMultipleRecords.
In this section, we will look at how to use these functions by creating a simple code component. Similar to the code component we created for external devices, we will add five buttons, each of which will represent the five functions provided by the Web API. Each of these buttons will be bound to its...