How to do it...

  1. In Postman, create a new (GET) request.
  2. Enter the following request URL:
https://api.businesscentral.dynamics.com/v1.0/<tenant name>/sandbox/api/v1.0

Replace <tenant name> with the name of your Azure domain in which you created the Business Central sandbox. For example, if your Azure domain is myazuresub.onmicrosoft.com, then you would use the following URL: 

https://api.businesscentral.dynamics.com/v1.0/myazuresub.onmicrosoft.com/sandbox/api/v1.0
At the time of writing this book, the current version of the Business Central API is 1.0. You may need to adjust the previous URL in the event that there is a newer version.
  1. Click the Auth tab and enter the following information:

Type

Basic Auth

Username:

The User Name of the user you created the web services key for

Password:

The Web Services Access Key you generated
  1. Click Send to view the request results. You should now see the list of available entities in the API. The results in Postman can be formatted in Pretty mode so that they're more readable.
  2. Update the request URL to add /companies at the end, as shown by this example:
https://api.businesscentral.dynamics.com/v1.0/<tenant name>/sandbox/api/v1.0/companies
  1. Click Send. Now, you'll see the list of companies that are in your sandbox tenant!
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset