Setup SimplyAP Integration Settings for ERP

5 min. readlast update: 06.13.2024

Introduction

This article will cover the steps to connect SimplyAP with Microsoft Dynamics 365 Business Central (BC) for both Online and On-premises installations. We will be populating the Integration Settings section in SimplyAP Administration with values generated using the steps in this article. 

(SimplyAP Integration Settings screenshot below)

undefined

 

 

Task 1 - Register an Azure AD application for authentication to Business Central

Create App Registration

  • Log in Azure AD Portal
  • Search for "App registrations"
  • Create a new app registration

Register an application for Business Central in Azure Active Directory tenant.

undefined

 

  • Choose the name for the application: (Example: BusinessCentralQAEnvironmen)
  • Choose the supported account types

 

undefined

 

undefined

 

Create a client secret for the registered application 

  •  Press Certificates & secrets

undefined

  • Press New client secret

 

undefined

 

  • Add a description and choose key duration:

undefined

 

  • Copy and keep the client secret in a safe place. The key will be used in a later step, and will not be displayed again.

 

undefined

 

Setup API permissions

 

  • Press  API permissions

undefined

 

Press the Add a permission button

undefined

 

Grant the registered application API.ReadWrite.All or Automation.ReadWrite.All permission to the Dynamics 365 Business Central API as follows:

  1. Select API permissions > Add a permission > Microsoft APIs.
  2. Select Dynamics 365 Business Central.
  3. Select Application permissions, select API.ReadWrite.All, then select Add permissions.

 

undefined

 

  • Grant admin consent

Press “Grant admin consent”, and accept the request:

undefined

After granting consent, the Admin consent request column will now show YES, and the status, as “Granted for enChoice”:

undefined

 

Note: Alternatively, you can grant admin consent from within Business Central, on the Azure AD application card.

 

Task 2 - Set up the SimplyAP Extension and Azure AD application in Business Central

  • In Business Central, navigate to the Extension Marketplace and install the SimplyAP extension
    • NOTE: For On-Prem Business Central, we will provide the application file to you directly 
  • Next, search for Azure Active Directory Applications and open the page:

undefined

 

undefined

 

  • On the Table, Insert a New Entry, where ClientID is the Azure AD Application (client) ID:

 

undefined

 

Insert the following data:

  • Client ID : The Azure AD Application (client) ID
  • Description: BusinessCentralQAEnvironment

undefined

 

  • Change the State from Disabled to Enabled and click Yes on the prompt

 

undefined

 

(after clicking Yes to the prompt)

 

undefined

 

  1. Open User Permission Sets, and Assign the following Profiles:
  • D365 BUS PREMIUM
  • SIMPLYAP
  • LOCAL

 

undefined

 

Task 3 - Enter the Integration Settings in the SimplyAP Administration Section

ERP Settings

  • Log into SimplyAP as the System Manager user, click on the Manage Icon, and click on Integration Settings
  •  

undefined

 

undefined

 

undefined

 

undefined

Note for On-Premises BC implementations: This is the public URL of your BC server API. For example: https://mybcservername.mycompany.com:7048/bc200/api 

  • Leave the ERP API Callback Url blank
  • For ERP API Scopes enter the following Url:

https://api.businesscentral.dynamics.com/.default

 

undefined

 

Under Application Settings enter the Application (client) ID from Azure into the SimplyAP Client ID field, and the Directory (tenant) ID from Azure into the Active Directory TenantID field in SimplyAP. 

undefined

 

  • Enter the client secret that was created in the previous step in Azure AD into the Client Secret field
  • Enter the Active Directory Domain Name from Azure
  • Enter the following for Active Directory Instance:

https://login.microsoftonline.com/

  • Click SAVE

undefined

  • If the connection is successful, the status will show a green ‘connected’ icon  

undefined

 

BC On-Premises Addendum:

Please consult your BC partner or Microsoft documentation for details, but a few points to be aware of are below:

  • BC version 21.1 or later is required
  • The ERP API Base Url must be publicly available and secured with a valid SSL certificate
  • The APIs use a different port (default 7048) than the BC Client. Traffic on this port will need to be allowed through your firewall to the BC server
  • Only OAuth is supported (Basic Auth is not)
  • The BC APIs are not enabled by default and need to be enabled
  • BC must be using Active Directory Federated or OIDC login
  • The BC V2 APIs must be installed. This is listed as '_Exclude_APIV2_' in the NAV Installed App list

To determine if your on-premises installation configuration will be compatible with OAuth, a test can be done independent of SimplyAP by using Postman to make the API call to get the token from Active Directory, and then to get the list of companies from BC. These calls must be successful in order for your on-premises BC installation to be eligible for use with SimplyAP. Please reach out to Support for more information about running these calls to qualify your installation.

 

 

Was this article helpful?