web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Deploy the Excel add-in for Business Central on-premises

(2) ShareShare
ReportReport
Posted on by

To Deploy the Excel add-in for Business Central on-premises you will need to do the following prerequisites

1.      You should have created two Azure AD apps. one Azure AD app for BC authentication another one is created for Edit in Excel.

a.      For this one Azure AD app for BC authentication you can check this link it contains the whole steps needed User Authentication with Azure AD for Single Sign-on - Business Central | Microsoft Docs

b.      After creating BC Authentication, you should do two mandatory steps:

i.       Be sure that this parameter in the Manifest is set to True "allowPublicClient": true,

ii.      Expose an API and the Value should be user_impersonation

P.jpg

 

2-     Now we will start to Register and configure an Azure AD application for the Excel Add-in in Microsoft Azure
 

a-      Register an Azure AD application for the Excel add-in.

2021_2D00_08_2D00_24_5F00_11_2D00_07_2D00_35.jpg

b-     Grant the Excel add-in application permission to access the Business Central application Web API:

Give the Azure AD application for the Excel add-in delegated permission to access the Business Central application Web API in Azure AD (which you exposed earlier in this article). This permission allows users of the Excel add-in to access the OData web services to read and write data.

i.       From the application's Overview, select API Permissions.

ii.      Select the Add a permission

iii.     On the APIs my organization uses, select the Business Central application.

iv.     Select Delegated permission.

v.      Select the permission from the list and then select Add Permission.

a.jpg

4426.jpg

c-      Configure OAuth2 authentication in the Excel add-in.

 

i. The Excel add-in requires OAuth2 implicit grant flow to be enabled on the Excel Add-in application. You configure OAuth2 in the manifest file for the Excel Add-in application. From the application's Overview, select Manifest, and then set "oauth2AllowIdTokenImplicitFlow" and "oauth2AllowImplicitFlow" to true:

4760.jpg

ii. In the manifest, add the following URL entry to the "replyUrlsWithType"::

{

    "url": "">az689774.vo.msecnd.net/.../*",

    "type": "Web"

}

7840.jpg

 

iii. Copy the Application (Client) ID that is assigned to the Excel add-in application.

 3386.jpg

3. Configure the Business Central Server Instances:

a.  Open Business Central Server Administration tool

b. In the Business Central Server Administration tool, in the Azure Active Directory section, set the Excel add-in AAD client ID field to the application (client) ID for the Excel add-in application that you copied from the Azure portal.

c. In the Client Services section set the Web Client Base URL field to the base URL of the Business Central Web client. e.g. https://test:443/BC180/SignIn

d. In the OData Services section set the OData Base URL field to the public URL for accessing OData services. The URL must have the following format https://<hostname>:<port>/<instance>/ODataV4/, such as test:7048/.../

 2816.jpg

Then if you tried to use you will face the below error and to avoid this error, please be sure that you added the Azure AD App ID URL correct 

ttt.jpg

You can Azure AD App ID URL from the Azure AD app for BC authentication (the first step you did in point No:1)

5344.jpg

Reference:

docs.microsoft.com/.../configuring-excel-addin

I have the same question (0)
  • Bilal Haider Profile Picture
    414 on at

    Thanks for sharing this

  • Verified answer
    Microsoft Dynamics 365 Business Central Profile Picture
    on at

    you are welcome at any time

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,468

#2
YUN ZHU Profile Picture

YUN ZHU 923 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans