Skip to end of banner
Go to start of banner

Application Configuration in Microsoft Azure Portal for OAuth2 Account to use in Business Central

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 15 Next »

In this Article

Overview

Snaps in the Microsoft Business Central Snap Pack require an Access Token or OAuth2 account to access the resources in Azure. For the accounts to authorize successfully, create and configure an application corresponding to the account as displayed in the workflow.

Prerequisites

An Azure account with a free subscription to create the application.

Key Steps in the Workflow

Create an Application in the Azure Portal

  1. Log in to the Microsoft Azure Portal.

  2. Navigate to Azure services > Azure Active Directory.

  3. Navigate to Add > App registration.

  4. On the Register an application page, specify the name for registering the application and click Register. Learn more about creating an application: https://learn.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app.

To use an existing application, navigate to Portal Home > Azure Active Directory >App registrations > All applications. In the search box, specify the application name you want to use. The details of the registered application display in the search list.

Define Permissions

The Microsoft Business Central Snap Pack supports the following account types:

The permissions for the registered application are either Delegated or Application based on the account types.

  1. On the left navigation panel, navigate to Manage, and select API permissions > Add a permission.

  2. On the Request API permissions window, select Microsoft Graph > Dynamics 365 Business Central for the OAuth2 and Access Token Account.

  3. Select Delegated Permissions or Application Permissions.

  4. Select the permissions you require.

  5. Click Add Permissions. You can 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.

    Application Configuration in Microsoft Azuze_Business Cemtral__Step6.png
    1. Under Platform configurations, click Add a platform.

    2. Select Web and specify a valid Redirect URI https://elastic.snaplogic.com/api/1/rest/admin/oauth2callback/businesscentral and click Configure. A popup message indicates that the application is successfully updated.

Configure the Business Central Application

  1. Log in to the Microsoft Business Central application.

  2. Search for aad in the search box.

  3. Navigate to Azure Active Directory Application and select New.

  4. Configure the following fields for the new record:

    1. In the Client ID field, specify the client ID that is generated from the registered application in the Azure Active Directory.

    2. In the Description field, specify a name for the application.

      Application Configuration in Microsoft Azuze_Business Cemtral__Step4b.png
    3. Change the State to Enabled.

      Application Configuration in Microsoft Azuze_Business Cemtral__Step4c.png
    4. In the User Permission Sets, select the ellipsis (…) and select the required Permission Set.

    5. Click Grant Consent to provide permission to access the Business Central Data.

      Application Configuration in Microsoft Azuze_Business Cemtral__Step4e.png

Specify the Credentials and Validate the Snap Account

To authorize your account in the SnapLogic (R) Platform, you must have the following application credentials:

  • Instance URL

  • Application (client) ID

  • Client secret value

  1. Navigate to the Business Central Snap of your choice and configure the Business Central OAuth2 Account with the details from the registered application in the Business Central Portal.

    Application Configuration in Microsoft Azuze_Business Cemtral__Creds_ValidateStep1.png
  2. Click Authorize. You are redirected to the sign-in page of the Azure Portal.

  3. Sign in to Azure Portal with valid credentials to redirect to the Snap Edit account settings dialog. The Access and Refresh tokens are auto-populated and encrypted in the Account settings.

Troubleshooting

Error

Reason

Resolution

Error 401

The pipeline could not complete execution because of a connection error.

Reauthorize the account and retry.

Snap Pack History

 Click here to expand...

Release

Snap Pack Version

Date

Type

Updates

November 2024

main29029

Stable

Updated and certified against the current Snaplogic Platform release.

August 2024

main27765

Stable

Updated and certified against the current SnapLogic Platform release.

May 2024

main26341

Stable

Updated and certified against the current SnapLogic Platform release.

February 2024

main25112

Stable

Updated and certified against the current SnapLogic Platform release.

November 2023

main23721

Stable

Updated and certified against the current SnapLogic Platform release.

August 2023

434patches23466

Latest

Enhanced the Dynamics 365 Business Central Read and Dynamics 365 Business Central Search Snaps with a new Error out on no results checkbox, which customizes the error view when no results are returned.

August 2023

434patches23129

Latest

August 2023

434patches22601

Latest

August 2023

main22460

Stable

Updated and certified against the current SnapLogic Platform release.

May 2023

 433patches22215

Latest 

 Introduced the Microsoft Dynamics 365 Business Central Snap Pack. This Snap pack comprises the following Snaps and Accounts:

Related Content

  • No labels