12/3/2023 0 Comments Api connector definitionThen again, select "Delegated permission". Next, select the 2 options presented and click "Add permission".įor the last permission you have to click again "Add permission" but instead of selecting "Dynamics 365 Business Central" you need to select "Microsoft Graph". Select it, then select "Delegated permissions". On the next screen, make sure that "Microsoft APIs" is selected, after search for "Dynamics 365 Business Central". To do this, press the "Add permission" button. From default there is one permission added but we need 3 more. We'll need it later.įrom the home screen of the app, select API Permissions. Now, grab the value of the Client secrete and paste it in a Notepad. For test purposes, I allocate the maximum value which is 2 years. Give the Client secrete a descriptive name so you know where you have used it and an expiration period. On the next screen, select "New client secrete". Select "Certificates & secretes" from the sidebar. Now that the app is registered, we have to do 2 things, create a client secrete and give proper permission for the app. In the next window, give the app a name, for example "Business Central Web Service Client", leave it as Single Tenant and leave the Redirect URI empty for now, we will come back later to complete it. For those of you that know how to do this, skip ahead.Īccess and navigate to Azure Active Directory (either using the Search bar or the icon on the Home page), App Registration.įrom here, press "New registration". This time, I had to use OAuth2.0 as this is the type of authentication used by the APIs.įirst step is to register an application in Azure. In the past, I have created custom connectors but all with Basic Authentication. But, before starting to create the app, I started to create the flows to be triggered.Īs these 2 APIs are not created as Connectors in Power Automate, I had to create 2 Custom Connectors. This intrigued me to create a Power App for a client who wanted to automate many of these features as they use BC for educational purposes. You can do calls to get current environments, create new ones, copy Production/Sandbox environments, create new companies inside Business Central, import users, update permission sets, etc. In short, these 2 types of APIs allow you to manage many aspects of a Business Central SaaS tenant, environment and company. I recently discovered the Business Central Administration Center API and the Business Central Automation API.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |