> ## 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 – StackOne Hub

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

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Tenant ID</h2>

  <p>Your Microsoft Entra tenant ID is required to establish the connection to Business Central.</p>

  <Steps>
    <Step title="Locate the Tenant ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>You can find your Tenant ID in one of the following ways.</p>

        <ul>
          <li>In the <a href="https://entra.microsoft.com" target="_blank" rel="noopener noreferrer">Microsoft Entra admin center</a>, navigate to <strong>Identity</strong> > <strong>Overview</strong>. The <strong>Tenant ID</strong> is displayed on the Overview page.</li>
          <li>Alternatively, in the <a href="https://portal.azure.com" target="_blank" rel="noopener noreferrer">Azure Portal</a>, navigate to <strong>Microsoft Entra ID</strong> > <strong>Overview</strong>. The <strong>Tenant ID</strong> field contains the value you need.</li>
          <li>Copy the Tenant ID (a GUID in the format 12345678-1234-1234-1234-123456789abc) and enter it in the connection form.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Find Your Business Central Environment Name</h2>

  <p>The environment name identifies which Business Central environment to connect to.</p>

  <Steps>
    <Step title="Locate the Environment Name">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to <a href="https://businesscentral.dynamics.com" target="_blank" rel="noopener noreferrer">Business Central</a> and find the environment name.</p>

        <ul>
          <li>Navigate to <strong>Settings</strong> (gear icon) > <strong>Admin Center</strong>, or go directly to `https://businesscentral.dynamics.com/[TENANT_ID]/admin` (replace `[TENANT_ID]` with your Microsoft Entra tenant ID).</li>
          <li>Under <strong>Environments</strong>, you will see a list of available environments with their names and types.</li>
          <li>Common environment names are <strong>production</strong> or <strong>sandbox</strong>. Your organization may also have custom-named environments.</li>
          <li>Copy the exact environment name and enter it in the connection form.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<div data-whitelabel-hide>
  <h2>Linking the Account from the Hub</h2>

  <Steps>
    <Step title="Navigate to the Hub">
      Use one of the three <a href="/guides/accounts-section#linking-accounts">Linking Account Methods</a> to access the Hub.
    </Step>

    <Step title="Fill out the fields">
      Fill out the following fields using details from your provider:

      <ul>
        <li><strong>Tenant ID</strong></li>
        <li><strong>Business Central Environment</strong></li>
      </ul>
    </Step>

    <Step title="Connect">
      <ul>
        <li>Click <strong>Connect</strong></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>
    </Step>
  </Steps>

  <p>If the account linking is successful, you will see the newly linked account in your <a href="/guides/accounts-section">Accounts</a> page.</p>
</div>
