![]() ![]() Select OAuth 2.0 type as the authorization method. For this example, we will use the OData V4 URL. For that, choose one endpoint from the web services page of Business Central. In order to test an API, an API endpoint is needed. Go to Postman´s website and create a new account. If you didn´t grant admin consent from Azure you can do it here as well in the ‘Grant Consent’ action.Įverything is ready now to start working in Postman.Give a permission set or assign a user group.Enter the Client ID of the app created in Azure.Go to the ‘Azure Active Directory Applications’ list and create a new one.Make sure to grant admin consent for the permissions added, otherwise the request won´t work.Īt this point, if we use Postman (we will see how to do it step by step in the next section), we receive the next response:įor it to work, you need to create an AAD application in Business Central.Īn AAD App (Microsoft Entra Application) will act as the permission granter. See how to do it below, after granting permissions. Only an ADD application will be needed in Business Central. Meaning that no signed-in user is required. We will use it also on Postman.įinally, go to API permissions and add a Dynamics 365 Business Central permission.įor this example, we will be using ‘Application permissions’. Go to ‘Certifactes & secrets’ and generate a new secret.Ĭopy the secret value right away, it will only be visible this time. You can see that an application ID has been given, we will use this value later on Postman. In the Azure portal choose ‘App registrations’ and create a new one. Register an AAD app in Business Central.Since basic is deprecated on cloud environments, we will focus on OAuth in this guide. There are two types of authentication methods, basic and OAuth. We must tell Postman that Business Central grants permissions and is able to access our company data. This first step is required to provide Postman with the credentials. In other words, it allows developers to interact with APIs and exchange information. It provides a user-friendly interface for sending HTTP requests to web servers and receiving responses. Postman is an API platform for developers to design, build, and test APIs. Creating An Azure Application With OAuth.Finally, we’ll look at how to use SOAP endpoints as well. We’ll start by setting up OAuth in Azure, then using Postman to consume OData endpoints. In this article, we’ll explore how to use Postman, a popular API development tool, to connect and get data from Business Central. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |