In this Article
...
Key Steps in the Workflow
1. Create an Application in the Azure Portal
Log in to the Microsoft Azure Portal.
Navigate to Azure services > Azure Active Directory.
Navigate to Add > App registration.
On the Register an application page, specify the name for registering the application and click Register. Learn more about creating an application at https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.
2. Define Permissions
The Microsoft Business Central Snap Pack supports the following two types of accounts:
The permissions for the registered application are either Delegated or Application permissions based on the account types. Select Delegated permissions for User Accounts and Application permission for Application Accounts.
On the left navigation panel, navigate to Manage,andselect API permissions > Add a permission.
2. On the Request API permissions window, select Microsoft Graph > Business Central for the OAuth2 and Access Token Account.
...
3. Select Delegated Permissions or Application Permissions.
...
4. Select the permissions from Files, Users, and Teams.
5. Click Add Permissions. View all the permissions added under Configured permissions.
...
6. Click Overview and select Add a Redirect URI. You will be redirected to the Platform configurations page.
...
a. Under Platform configurations, click Add a platform.
...
b. Select Web and specify a valid Redirect URI https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/businesscentral
and click Configure. A popup message displays indicating that the application is successfully updated.
...
3. Configure Business Central Application for instance URL
Log in to the Business Central environment you need to connect, and enter aad in tell me, then choose the related link.
...
2. Choose New.
...
3. Enter Client ID and Description.
...
2. Locate/Define the Information Required to Create your Business Central OAuth2 Account
Specify the values required to create a successful <Snap Pack Name> Business Central OAuth2 account.
Navigate to the <Snap Pack Name> Business Central Snap of your choice and configure the <Snap Pack Name> Business Central OAuth2 Account with the following details:
Client ID: A Public Identifier for your app. Provide the Client ID that is auto-generated after creating the app in the <endpoint>
Client Secret: Secret value is known only to the app and the auth server. Provide the Client Secret that is auto-generated after creating the app in the <endpoint>.
OAuth2 Endpoint:
OAuth2 Token:
<Insert Account image>
Click Authorize.
You will be redirected to the login page of ServiceNow.Log into ServiceNow and accept the permissions.
The Access token and the Refresh Token will be generated.Select the Auto-refresh token checkbox and save the account.
...