> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stackone.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Microsoft Dynamics 365 Business Central with OAuth 2.0 (Multiple Companies) – StackOne Hub

> Link a Microsoft Dynamics 365 Business Central account in the StackOne Hub using OAuth 2.0 (Multiple Companies). End-user guide to authorize the integration and start using Microsoft Dynamics 365 Business Central actions.

## Find Your Business Central Environment Name

The environment name identifies which Business Central environment to connect to.

**1. Locate the Environment Name**

Sign in to [Business Central](https://businesscentral.dynamics.com).

<ul>
  <li>Open **Settings** (gear icon) > **Admin Center**.</li>
  <li>Under **Environments**, find the environment you want to connect.</li>
  <li>Common environment names are **production** or **sandbox**. Your organization may also have custom-named environments.</li>
  <li>Copy the exact environment name across.</li>
</ul>

## Find Your Company ID

Your Company ID is the GUID of the Business Central company to connect.

**1. Copy the Company Id**

Sign in to [Business Central](https://businesscentral.dynamics.com).

<ul>
  <li>Select the **Search** icon (magnifying glass).</li>
  <li>Enter `Companies`.</li>
  <li>Open the **Companies** page.</li>
  <li>Select the row of the company you want to connect.</li>
  <li>Select the **Help** (question mark) icon > **Help & Support** > **Inspect pages and data**.</li>
  <li>Under **Table Fields**, find the **Id** field and copy its value across.</li>
</ul>

## Link the Account

**1. Connect**

<ul>
  <li>Click **Connect**.</li>
  <li>If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider's authorization flow.</li>
  <li>Once authorization is successful, you will see a confirmation popup.</li>
</ul>

**2. Use Actions**

Connect an AI platform to the linked account's actions. See [AI Platforms](https://docs.stackone.com/ai-platforms/overview.md).

Other ways to call actions are listed in [Protocols & SDKs](https://docs.stackone.com/connect/protocols-and-sdks.md).

## Next Steps

> [card] [Webhooks setup](https://docs.stackone.com/connectors/dynamics365bc/guides/webhook-setup.md)
>
> Configure receiving Events for Microsoft Dynamics 365 Business Central into StackOne.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.