> ## 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.

# Microsoft Dynamics 365 Business Central OAuth 2.0 connector profile – StackOne setup guide

> Set up the OAuth 2.0 connector profile for Microsoft Dynamics 365 Business Central in StackOne. One-time admin setup required before your users can link Microsoft Dynamics 365 Business Central accounts via Hub.

<Warning>You must have at least Application Developer permissions in your Azure account to register applications in Microsoft Entra ID. A Dynamics 365 Business Central license is required for users accessing the API.</Warning>

<Panel>
  <div className="not-prose guides-scope-selector" data-guides-scope-selector data-guide-actions-json="[{&#x22;id&#x22;:&#x22;dynamics365bc_list_accounts&#x22;,&#x22;label&#x22;:&#x22;List Accounts&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_account&#x22;,&#x22;label&#x22;:&#x22;Get Account&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_bank_accounts&#x22;,&#x22;label&#x22;:&#x22;List Bank Accounts&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_bank_account&#x22;,&#x22;label&#x22;:&#x22;Get Bank Account&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_bank_account&#x22;,&#x22;label&#x22;:&#x22;Create Bank Account&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_bank_account&#x22;,&#x22;label&#x22;:&#x22;Update Bank Account&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_bank_account&#x22;,&#x22;label&#x22;:&#x22;Delete Bank Account&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_companies&#x22;,&#x22;label&#x22;:&#x22;List Companies&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_company&#x22;,&#x22;label&#x22;:&#x22;Get Company&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_company_information&#x22;,&#x22;label&#x22;:&#x22;List Company Information&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_company_information&#x22;,&#x22;label&#x22;:&#x22;Get Company Information&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_company_information&#x22;,&#x22;label&#x22;:&#x22;Update Company Information&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_currencies&#x22;,&#x22;label&#x22;:&#x22;List Currencies&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_currency&#x22;,&#x22;label&#x22;:&#x22;Get Currency&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_currency&#x22;,&#x22;label&#x22;:&#x22;Create Currency&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_currency&#x22;,&#x22;label&#x22;:&#x22;Update Currency&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_currency&#x22;,&#x22;label&#x22;:&#x22;Delete Currency&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_customer_payment_journals&#x22;,&#x22;label&#x22;:&#x22;List Customer Payment Journals&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_customer_payment_journal&#x22;,&#x22;label&#x22;:&#x22;Get Customer Payment Journal&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_customer_payments&#x22;,&#x22;label&#x22;:&#x22;List Customer Payments&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_customer_payment&#x22;,&#x22;label&#x22;:&#x22;Get Customer Payment&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_customers&#x22;,&#x22;label&#x22;:&#x22;List Customers&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_customer&#x22;,&#x22;label&#x22;:&#x22;Get Customer&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_customer&#x22;,&#x22;label&#x22;:&#x22;Create Customer&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_customer&#x22;,&#x22;label&#x22;:&#x22;Update Customer&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_customer&#x22;,&#x22;label&#x22;:&#x22;Delete Customer&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_dimensions&#x22;,&#x22;label&#x22;:&#x22;List Dimensions&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_dimension&#x22;,&#x22;label&#x22;:&#x22;Get Dimension&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_dimension_values&#x22;,&#x22;label&#x22;:&#x22;List Dimension Values&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_dimension_value&#x22;,&#x22;label&#x22;:&#x22;Get Dimension Value&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_employees&#x22;,&#x22;label&#x22;:&#x22;List Employees&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_employee&#x22;,&#x22;label&#x22;:&#x22;Get Employee&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_general_ledger_entries&#x22;,&#x22;label&#x22;:&#x22;List General Ledger Entries&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_general_ledger_entry&#x22;,&#x22;label&#x22;:&#x22;Get General Ledger Entry&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_items&#x22;,&#x22;label&#x22;:&#x22;List Items&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_item&#x22;,&#x22;label&#x22;:&#x22;Get Item&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_item&#x22;,&#x22;label&#x22;:&#x22;Create Item&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_item&#x22;,&#x22;label&#x22;:&#x22;Update Item&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_item&#x22;,&#x22;label&#x22;:&#x22;Delete Item&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_item_categories&#x22;,&#x22;label&#x22;:&#x22;List Item Categories&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_item_category&#x22;,&#x22;label&#x22;:&#x22;Get Item Category&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_journals&#x22;,&#x22;label&#x22;:&#x22;List Journals&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_journal&#x22;,&#x22;label&#x22;:&#x22;Get Journal&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_journal_lines&#x22;,&#x22;label&#x22;:&#x22;List Journal Lines&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_journal_line&#x22;,&#x22;label&#x22;:&#x22;Get Journal Line&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_journal_line&#x22;,&#x22;label&#x22;:&#x22;Create Journal Line&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_journal_line&#x22;,&#x22;label&#x22;:&#x22;Update Journal Line&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_journal_line&#x22;,&#x22;label&#x22;:&#x22;Delete Journal Line&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_purchase_invoices&#x22;,&#x22;label&#x22;:&#x22;List Purchase Invoices&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_purchase_invoice&#x22;,&#x22;label&#x22;:&#x22;Get Purchase Invoice&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_purchase_orders&#x22;,&#x22;label&#x22;:&#x22;List Purchase Orders&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_purchase_order&#x22;,&#x22;label&#x22;:&#x22;Get Purchase Order&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_sales_credit_memos&#x22;,&#x22;label&#x22;:&#x22;List Sales Credit Memos&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_sales_credit_memo&#x22;,&#x22;label&#x22;:&#x22;Get Sales Credit Memo&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_sales_invoices&#x22;,&#x22;label&#x22;:&#x22;List Sales Invoices&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_sales_invoice&#x22;,&#x22;label&#x22;:&#x22;Get Sales Invoice&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_sales_orders&#x22;,&#x22;label&#x22;:&#x22;List Sales Orders&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_sales_order&#x22;,&#x22;label&#x22;:&#x22;Get Sales Order&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_sales_quotes&#x22;,&#x22;label&#x22;:&#x22;List Sales Quotes&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_sales_quote&#x22;,&#x22;label&#x22;:&#x22;Get Sales Quote&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_sales_quote&#x22;,&#x22;label&#x22;:&#x22;Create Sales Quote&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_sales_quote&#x22;,&#x22;label&#x22;:&#x22;Update Sales Quote&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_sales_quote&#x22;,&#x22;label&#x22;:&#x22;Delete Sales Quote&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_tax_areas&#x22;,&#x22;label&#x22;:&#x22;List Tax Areas&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_tax_area&#x22;,&#x22;label&#x22;:&#x22;Get Tax Area&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_list_vendors&#x22;,&#x22;label&#x22;:&#x22;List Vendors&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_get_vendor&#x22;,&#x22;label&#x22;:&#x22;Get Vendor&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_create_vendor&#x22;,&#x22;label&#x22;:&#x22;Create Vendor&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_update_vendor&#x22;,&#x22;label&#x22;:&#x22;Update Vendor&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]},{&#x22;id&#x22;:&#x22;dynamics365bc_delete_vendor&#x22;,&#x22;label&#x22;:&#x22;Delete Vendor&#x22;,&#x22;scopes&#x22;:[&#x22;https://api.businesscentral.dynamics.com/Financials.ReadWrite.All&#x22;]}]" style={{ borderRadius: '8px', padding: '16px', marginBottom: '24px' }}>
    <div className="guides-scope-selector__title" style={{ fontSize: '16px', fontWeight: '600', marginBottom: '12px' }}>Select Actions to adjust the guide</div>
    <div className="guides-scope-selector__muted" style={{ fontSize: '13px', marginBottom: '12px' }}>Some actions may require additional configuration in the provider to be accessible. Choose the actions you need and the guide will be updated.</div>

    <div style={{ display: 'flex', gap: '8px', marginBottom: '12px', flexWrap: 'wrap' }}>
      <input type="text" placeholder="Search actions..." className="guides-scope-selector__input" data-guide-action-search style={{ padding: '8px 12px', borderRadius: '6px', fontSize: '13px', flex: 1, minWidth: '160px' }} />

      <button type="button" className="guides-scope-selector__quick-btn" data-guide-select-all style={{ padding: '6px 10px', borderRadius: '6px', fontSize: '12px', cursor: 'pointer' }}>Select all</button>
      <button type="button" className="guides-scope-selector__quick-btn" data-guide-clear style={{ padding: '6px 10px', borderRadius: '6px', fontSize: '12px', cursor: 'pointer' }}>Clear</button>
    </div>

    <div className="guides-scope-selector__list" style={{ maxHeight: '240px', overflowY: 'auto', borderRadius: '6px', marginBottom: '12px' }}>
      <div className="guides-scope-selector__list-header" style={{ display: 'flex', alignItems: 'center', gap: '10px', padding: '8px 12px', fontSize: '12px', fontWeight: '600', position: 'sticky', top: 0, zIndex: 1 }}>
        <div style={{ width: '16px', flexShrink: 0 }} />

        <div style={{ flex: 1, textAlign: 'left' }}>Action</div>
        <div style={{ minWidth: '120px', marginLeft: 'auto', textAlign: 'right' }}>Scope(s)</div>
      </div>

      <div className="guides-scope-selector__muted" data-guide-loading style={{ padding: '16px', textAlign: 'center', fontSize: '13px' }}>Loading actions...</div>
      <div className="guides-scope-selector__muted" data-guide-no-results hidden style={{ padding: '16px', textAlign: 'center', fontSize: '13px' }}>No actions match your search.</div>
    </div>

    <div className="guides-scope-selector__url-section" style={{ marginTop: '12px', paddingTop: '12px' }}>
      <div className="guides-scope-selector__muted" style={{ fontSize: '12px', fontWeight: '500', marginBottom: '6px' }}>Dynamic Guide URL</div>

      <div style={{ display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' }}>
        <input type="text" readOnly className="guides-scope-selector__input" data-guide-url style={{ flex: 1, minWidth: '200px', padding: '8px 10px', borderRadius: '6px', fontSize: '12px', fontFamily: 'monospace' }} />

        <button type="button" className="guides-scope-selector__copy-btn" data-guide-copy-url style={{ width: '120px', padding: '8px 14px', borderRadius: '6px', fontSize: '13px', fontWeight: '500', cursor: 'pointer', whiteSpace: 'nowrap', marginLeft: 'auto' }}>Copy URL</button>
      </div>

      <div style={{ marginTop: '12px' }}>
        <div className="guides-scope-selector__muted" style={{ fontSize: '12px', fontWeight: '500', marginBottom: '6px' }}>Scopes Selected</div>

        <div style={{ display: 'flex', alignItems: 'stretch', gap: '8px', flexWrap: 'wrap' }}>
          <pre className="guides-scope-selector__input" role="textbox" aria-readonly="true" tabIndex={0} data-guide-scopes-output style={{ flex: 1, minWidth: '200px', minHeight: '88px', maxHeight: '120px', overflowY: 'auto', margin: 0, padding: '8px 10px', borderRadius: '6px', fontSize: '12px', fontFamily: 'monospace', whiteSpace: 'pre-wrap' }} />

          <div className="guides-scope-selector__muted" style={{ display: 'flex', flexDirection: 'column', gap: '8px', fontSize: '12px', fontWeight: '500', flexShrink: 0, alignItems: 'flex-start' }}>
            <div style={{ whiteSpace: 'nowrap' }}>Separator</div>

            <select className="guides-scope-selector__input" data-guide-scope-delimiter style={{ width: '100%', padding: '6px 10px', borderRadius: '6px', fontSize: '12px' }}>
              <option value="space">Space</option>
              <option value="comma">Comma</option>
              <option value="semicolon">Semicolon</option>
              <option value="pipe">Pipe</option>
              <option value="newline">Newline</option>
            </select>

            <button type="button" className="guides-scope-selector__copy-btn" data-guide-copy-scopes style={{ width: '120px', padding: '8px 14px', borderRadius: '6px', fontSize: '13px', fontWeight: '500', cursor: 'pointer', whiteSpace: 'nowrap' }}>Copy scopes</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</Panel>

<section data-guide-section data-guide-scopes="">
  <h2>Register Your Application in Microsoft Entra ID</h2>

  <p>To connect Dynamics 365 Business Central with StackOne, you need to register an application in Microsoft Entra ID to obtain OAuth 2.0 credentials.</p>

  <Steps>
    <Step title="Sign in to Microsoft Entra Admin Center">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Sign in to the <a href="https://entra.microsoft.com" target="_blank" rel="noopener noreferrer">Microsoft Entra admin center</a> as at least an Application Developer. If you have access to multiple tenants, click the <strong>Settings</strong> (gear) icon in the top-right corner, then select the desired tenant from the list under <strong>Directory + subscription</strong>.</p>
      </div>
    </Step>

    <Step title="Create a New App Registration">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Navigate to <strong>App registrations</strong> from the left navigation menu and select <strong>New registration</strong>.</p>

        <ul>
          <li>Enter a meaningful <strong>Name</strong> for your app (e.g., StackOne Business Central Integration).</li>
          <li>Under <strong>Supported account types</strong>, select <strong>Accounts in this organizational directory only</strong> (single tenant).</li>
          <li>Select <strong>Register</strong> to create the app registration.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Application (Client) ID">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>After registration, you'll be directed to the application's <strong>Overview</strong> page. Copy the <strong>Application (client) ID</strong> value and store it securely for use later.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Configure Redirect URI</h2>

  <p>Set up the OAuth 2.0 callback URL to enable authentication flow between StackOne and Business Central.</p>

  <Steps>
    <Step title="Navigate to Authentication Settings">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From your app's Overview page, select <strong>Authentication (Preview)</strong> from the left menu under <strong>Manage</strong>. If you are using the older UI, this may appear as <strong>Authentication</strong>.</p>
      </div>
    </Step>

    <Step title="Set the Redirect URI">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Under <strong>Redirect URI configuration</strong>, click <strong>Add Redirect URI</strong>, select <strong>Web</strong>, enter the StackOne OAuth callback URL, and click <strong>Configure</strong>.</p>

        <ul>
          <li>Redirect URI: `https://api.stackone.com/connect/oauth2/dynamics365bc/callback`</li>
          <li>Note: If you are using the older UI, under <strong>Platform configurations</strong> click <strong>Add a platform</strong>, select <strong>Web</strong>, enter the URI above, and click <strong>Configure</strong>.</li>
        </ul>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Configure API Permissions</h2>

  <p>Grant your application the Dynamics 365 Business Central API permission. This uses the Business Central API, not Microsoft Graph. The permission granted here (`Financials.ReadWrite.All`) is the same as the <strong>Scope</strong> used by StackOne during authentication (`https://api.businesscentral.dynamics.com/Financials.ReadWrite.All`).</p>

  <Steps>
    <Step title="Open API Permissions">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From the left menu under <strong>Manage</strong>, select <strong>API permissions</strong>.</p>
      </div>
    </Step>

    <Step title="Add Business Central Permission">
      <div data-guide-step data-guide-scopes="https://api.businesscentral.dynamics.com/Financials.ReadWrite.All" data-guide-display-scopes-list="https://api.businesscentral.dynamics.com/Financials.ReadWrite.All">
        <div className="connector-guide-actions-badge" data-guide-actions-badge data-guide-actions-badge-scopes="https://api.businesscentral.dynamics.com/Financials.ReadWrite.All" style={{ display: 'block', width: 'fit-content', maxWidth: '100%', padding: '2px 8px', borderRadius: '8px', fontSize: '12px', marginBottom: '8px', marginTop: '-10px', whiteSpace: 'nowrap', overflowX: 'auto', overflowY: 'hidden', msOverflowStyle: 'none', scrollbarWidth: 'none' }}>
          <span>Enables actions: </span><span data-guide-actions-badge-labels>Create Bank Account, Create Currency, Create Customer, Create Item, Create Journal Line, Create Sales Quote, Create Vendor, Delete Bank Account, Delete Currency, Delete Customer, Delete Item, Delete Journal Line, Delete Sales Quote, Delete Vendor, Get Account, Get Bank Account, Get Company, Get Company Information, Get Currency, Get Customer, Get Customer Payment, Get Customer Payment Journal, Get Dimension, Get Dimension Value, Get Employee, Get General Ledger Entry, Get Item, Get Item Category, Get Journal, Get Journal Line, Get Purchase Invoice, Get Purchase Order, Get Sales Credit Memo, Get Sales Invoice, Get Sales Order, Get Sales Quote, Get Tax Area, Get Vendor, List Accounts, List Bank Accounts, List Companies, List Company Information, List Currencies, List Customer Payment Journals, List Customer Payments, List Customers, List Dimension Values, List Dimensions, List Employees, List General Ledger Entries, List Item Categories, List Items, List Journal Lines, List Journals, List Purchase Invoices, List Purchase Orders, List Sales Credit Memos, List Sales Invoices, List Sales Orders, List Sales Quotes, List Tax Areas, List Vendors, Update Bank Account, Update Company Information, Update Currency, Update Customer, Update Item, Update Journal Line, Update Sales Quote, Update Vendor</span>
        </div>

        <p>Click <strong>Add a permission</strong>, then select <strong>APIs my organization uses</strong> and search for "Dynamics 365 Business Central". Select it, choose <strong>Delegated permissions</strong>, enable <strong>Financials.ReadWrite.All</strong>, and click <strong>Add permissions</strong> to save. Note: `offline_access` is requested automatically during the OAuth flow to obtain refresh tokens — it is not a selectable Dynamics 365 Business Central API permission and requires no additional action here:</p>

        <div style={{ marginTop: '8px' }} data-guide-display-scopes>
          <div className="connector-guide-scopes-container">
            <ul className="not-prose" style={{ listStyleType: "'- '", paddingLeft: '1em', margin: 0 }}>
              <li style={{ overflowWrap: 'anywhere', wordBreak: 'break-word' }} data-guide-display-scope="https://api.businesscentral.dynamics.com/Financials.ReadWrite.All">
                <button type="button" className="connector-guide-scope-copy" aria-label="Copy https://api.businesscentral.dynamics.com/Financials.ReadWrite.All" title="Copy scope" data-copy="https://api.businesscentral.dynamics.com/Financials.ReadWrite.All">
                  <span className="connector-guide-scope-copy__label">[https://api.businesscentral.dynamics.com/Financials.ReadWrite.All](https://api.businesscentral.dynamics.com/Financials.ReadWrite.All)</span>
                  <span className="connector-guide-scope-copy__icon" aria-hidden="true">⧉</span>
                </button>
              </li>
            </ul>
          </div>
        </div>
      </div>
    </Step>

    <Step title="Grant Admin Consent">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Click <strong>Grant admin consent for \[tenant name]</strong> and select <strong>Yes</strong> to consent on behalf of all users in your tenant. After granting, verify that <strong>Granted for \[tenant name]</strong> appears under the <strong>Status</strong> column.</p>
      </div>
    </Step>
  </Steps>
</section>

<section data-guide-section data-guide-scopes="">
  <h2>Generate Client Secret</h2>

  <p>Create a client secret that will be used to authenticate your application with Business Central.</p>

  <Steps>
    <Step title="Navigate to Certificates & Secrets">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>From the left menu under <strong>Manage</strong>, select <strong>Certificates & secrets</strong>.</p>
      </div>
    </Step>

    <Step title="Create a New Client Secret">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Under the <strong>Client secrets</strong> tab, click <strong>New client secret</strong>.</p>

        <ul>
          <li>Add a <strong>Description</strong> (e.g., StackOne Business Central Integration Secret).</li>
          <li>Select an appropriate expiration period.</li>
          <li>Click <strong>Add</strong>.</li>
        </ul>
      </div>
    </Step>

    <Step title="Copy the Client Secret Value">
      <div data-guide-step data-guide-scopes="" data-guide-display-scopes-list="">
        <p>Immediately copy the <strong>Value</strong> of the newly created client secret and store it securely for use later. This value will only be shown once and cannot be retrieved again.</p>
      </div>
    </Step>
  </Steps>
</section>

## Creating the StackOne Connector Profile

To create the Connector Profile in StackOne for <strong>Microsoft Dynamics 365 Business Central</strong>:

<Steps>
  <Step title="Navigate to Connector Profiles">
    Login to StackOne and navigate to [Connector Profiles](https://app.stackone.com/connector_profiles)
  </Step>

  <Step title="Create New Connector Profile">
    <ul>
      <li>Click <strong>+ Connector Profile</strong></li>
      <li>Search for and select <strong>Microsoft Dynamics 365 Business Central</strong></li>
      <li>Select <strong>Type</strong> as <strong>OAuth 2.0</strong></li>

      <li>
        Fill out the fields using details retrieved from your provider:

        <ul style={{ marginLeft: '20px' }}>
          <li><strong>Client ID</strong></li>
          <li><strong>Client Secret</strong></li>
          <li><strong>Scopes</strong> (Optional)</li>
        </ul>
      </li>

      <li>(Optional) Select <strong>Actions</strong> to be enabled for this Connector Profile</li>
      <li>Click <strong>Create profile</strong></li>
    </ul>
  </Step>
</Steps>

Congratulations! The new Connector Profile will now show up in your project ready to be used. You can now continue to <a href="/guides/accounts-section#linking-accounts">Link Accounts</a> for <strong>Microsoft Dynamics 365 Business Central</strong>.
