AUTOMATE NOW
  • Connection guide
  • HexaSync

Create a Microsoft Entra App for Dynamics 365

Register a Microsoft Entra App, get the Client ID, Tenant ID and Client Secret Value, and authorize it to connect Dynamics 365 F&O or Business Central.

HexaSync TeamLast updated

This guide helps you create a Microsoft Entra App: register an application in Microsoft Entra ID, get the Client ID and Tenant ID, and create a Client Secret Value. These are the credentials you use when you configure a connection to systems that support this method, including Microsoft Dynamics 365 Finance & Operations and Microsoft Dynamics 365 Business Central on HexaSync Automation Engine.

If you already have a suitable Microsoft Entra App, you can reuse it instead of creating a new application. Before you continue, check the tenant, the credentials and the authorization requirements of the system you want to connect.

Before you start

  • A Microsoft Entra account with permission to create App registrations in the tenant you want to connect.
  • Access to the correct Microsoft Entra tenant of your organization.

Part 1: Create a Microsoft Entra App

Step 1: Sign in and select the correct tenant

  1. Open the Microsoft Entra admin center.
  2. Sign in with an account that has permission to create App registrations.
  3. If the account belongs to several tenants, switch to the tenant of the organization you want to connect.

Step 2: Create an App registration

  1. Open Entra ID → App registrations, then select New registration.
  2. Enter the application details from the table below.
Field Value to enter or select
Name A name that is easy to recognize, for example HexaSync Integration.
Supported account types Single tenant (Accounts in this organizational directory only).
Redirect URI Leave empty.
  1. Select Register.
Creating an App registration in Microsoft Entra ID

Official reference: How to register an app in Microsoft Entra ID

Step 3: Get the Client ID and Tenant ID

  • In the App registration you just created, open Overview and copy the following values:
In Microsoft Entra Information to save
Application (client) ID Client ID
Directory (tenant) ID Tenant ID

Note: Application (client) ID is different from Object ID.

Step 4: Create a Client Secret

  1. In the application, open Certificates & secrets → Client secrets.
  2. Select New client secret.
  3. Enter a Description, for example HexaSync credential, then choose the lifetime under Expires.
  4. Select Add, then copy the value in the Value column right away.
Creating a client secret for the Entra App under Certificates & secrets

Note: Use the Client Secret Value, not the Secret ID. The Value is shown only when the secret is created, so store it safely and write down the expiration date.

Check the information you created

  • You have the Application (client) ID to use as the Client ID.
  • You have the Directory (tenant) ID to use as the Tenant ID.
  • You have saved the Client Secret Value and its expiration date.

Part 2: Authorize access for the system you want to connect

After you create the Microsoft Entra App, check the authorization requirements of the system you want to connect. API permissions, Admin consent and permissions in the target system differ from one system to another. The two sections below apply to Dynamics 365 F&O and Business Central; when you connect another product, use the requirements of that product.

Microsoft Dynamics 365 Finance & Operations (F&O)

For F&O, access is granted by linking the Microsoft Entra App to an integration user in F&O and assigning suitable security roles to that user. You do not need to add a general API permission in Microsoft Entra ID at this step. When it calls the API, the application works with the permissions of the linked user.

Prepare the integration user

Use a dedicated user for the integration, for example hexasync.integration. If the user already exists in F&O, go to the section on assigning security roles.

  1. In the Microsoft Entra admin center, open Entra ID → Users, then select New user → Create new user.
  2. Enter the User principal name, for example hexasync.integration@yourcompany.com, and the Display name, set a password, select Account enabled, then select Review + create → Create.
  3. In F&O, open System administration → Users → Users, select Import users, select the account you just created, then select Import users → Close.
  4. Open the imported user and check the User ID and Company.
Importing a user from Microsoft Entra ID into D365 F&O

Note: The user needs a suitable license to connect to F&O and read data from it.

Assign security roles

  1. In F&O, open System administration → Users → Users and open the integration user.
  2. In Assign roles to user, select the roles that match the data and APIs the user needs to access, then select OK.
Assigning a security role to the integration user in D365 F&O
  1. In F&O, open System administration → Setup → Microsoft Entra ID applications, then select New.
  2. Enter the Client Id (the Application (client) ID of the App), the Name and the User ID of the integration user.
  3. Select Save.
Linking the Entra App to a User ID on the Microsoft Entra ID applications screen in D365 F&O

The scope of the permissions depends on the services and data in use. Continue the connection with the guide to connecting Microsoft Dynamics 365 F&O on HexaSync.

Microsoft Dynamics 365 Business Central

For Business Central, you need to add an Application permission in Microsoft Entra ID and Grant admin consent before you register the application in Business Central.

  1. In the App registration, open API permissions and select Add a permission.
  2. Select Dynamics 365 Business Central → Application permissions → API.ReadWrite.All, then select Add permissions.
Selecting Application permissions, checking API.ReadWrite.All, then selecting Add permissions in the Microsoft Entra admin center
  1. Select Grant admin consent for [organization name], confirm with Yes and check that Status shows Granted for [organization name].
Selecting Grant admin consent and checking that the Status column shows Granted under API permissions

Note: API.ReadWrite.All is the permission recommended for the current Business Central Connector. It is not the only permission that works in every case. A lower permission must be confirmed as suitable for the APIs and data in use.

  1. Then, in Business Central, open Microsoft Entra Applications, register the Client ID, set State to Enabled and add the Permission Set D365 AUTOMATION. The configuration and checking steps in Business Central are described in the guide to connecting Business Central on HexaSync.

Part 3: Next steps

Part 4: Frequently asked questions

Can I reuse an existing Microsoft Entra App?

Yes. If the App already fits the tenant and the connection flow you need, you can reuse it. Check the Client ID, Tenant ID, Client Secret Value and the required API permissions before you continue.

Is the Client ID the same as the Object ID?

No. The Client ID is the Application (client) ID value in the Overview of the App registration. Do not use the Object ID in place of the Client ID.

Should I save the Secret ID or the Client Secret Value?

Save the Client Secret Value. The Secret ID cannot replace the Value. Because the Value is shown only when the secret is created, copy it and store it safely at that moment.

Is Dynamics 365 connected to HexaSync once the Entra App is created?

Not yet. You still need to authorize access for the system you want to connect (F&O or Business Central), then complete the connection flow and create a Connector App on HexaSync.