How can we help?

Microsoft Dynamics 365 Business Central Integration

Netanel Hugi
Netanel Hugi
  • Updated
Torii SMP
Torii Identity

Overview

Torii integrates with Microsoft Dynamics 365 Business Central and analyzes SaaS expenses and users:

Default synced transaction types Fields used for expense matching
Paid purchase invoices Vendor name
  Line item's description
  • Torii will automatically match transactions to the correct application, summarize expenses, and provide insights.
  • Torii syncs transaction data up to one year before the first connection date.
  • Torii also syncs user data from Microsoft Dynamics 365 Business Central. The following user fields are supported: email, status.
    Note: Torii uses the contact email field as the user email, so it must be filled in for each user.
  • You can constantly be updated with application information from our Integrations Page >> Integration Capabilities button >> Integration Capabilities table.

Requirements

Scopes

  • Financials.ReadWrite.All - We request the Financials.ReadWrite.All permission (and not a read-only alternative), as Microsoft does not offer a read-only version of this scope.

Accounts & Permissions

  • This integration requires the following credentials:
    • Tenant ID
    • Environment Name
    • Client ID
    • Client Secret

How to Generate the Required Values

In Microsoft Entra Admin Center:

  1. Go to App registrations > Click New registration
  2. In the Register an application form:
    • Name the app Torii
    • Under Supported account types, select:
      • Accounts in this organizational directory only (Single tenant)
    • Click Register

      Screenshot 2025-08-03 at 15.43.51.png
  3. Go to Authentication (Preview) > Click Add Redirect URI

    Do this step for both URIs:
    https://businesscentral.dynamics.com/OAuthLanding.htm
    https://api.toriihq.com/api/auth/microsoftDynamicsBusinessCentral/callback

    Screenshot 2025-08-05 at 17.06.06.png

    1. Select Web

      Screenshot 2025-08-05 at 17.03.26.png

    2. Enter the URI:
      Screenshot 2025-08-05 at 17.04.33.png
       
    3. Click Configure
  4. From the overview page, copy the Client ID and Tenant ID
    Untitled design.png
     
  5. Go to API permissions > Add a permission
  6. Under Request API permissions, select:
    1. Dynamics 365 Business Central > Delegated permissions > Add Financials.ReadWrite.All

      Screenshot 2025-08-03 at 15.44.41.png

      Screenshot 2025-08-03 at 15.44.46.png

      Screenshot 2025-08-05 at 14.07.04.png

  7. Click on Add permissions
  8. Click Grant admin consent and confirm
    Screenshot 2025-08-05 at 13.56.35.png
  9. Go to Certificates & secrets > New client secret
    Screenshot 2025-08-03 at 15.46.28.png
  10. Enter a description and expiration, then click Add
    Screenshot 2025-08-03 at 15.46.35.png
  11. Copy the Value (not the Secret ID) – this is your Client Secret

     

In Dynamics 365 Business Central:

  1. Search for Microsoft Entra Applications
    Screenshot 2025-08-03 at 16.00.44.png
  2. Click New and paste in the Client ID
    Screenshot 2025-08-03 at 16.00.51.png
    1. Set Description to Torii and State to Enabled
    2. Under User Permission Sets, add D365 BASIC ISV
      Screenshot 2025-08-03 at 16.01.17.png
    3. Click Grant Consent and accept the prompt
    4. Verify that the consent was successful
  3. Go to Settings > Admin Center
    Screenshot 2025-08-05 at 10.59.19.png
  4. Under Environments, locate the Environment you wish to connect to Torii

    Screenshot 2025-08-05 at 10.59.33.png

How to Connect the Integration

  1. Go to the Integrations page in Torii.
  2. Select the Microsoft Dynamics 365 Business Central tile.
    Screenshot 2025-08-05 at 11.25.39.png
  3. Click Connect.
    Screenshot 2025-08-05 at 11.25.55.png
  4. Enter the required values:
    • Tenant ID
    • Environment Name
    • Client ID
    • Client Secret

      Screenshot 2025-08-05 at 11.26.06.png

  5. Click Connect and follow instructions to connect the integration
  6. Mark the Consent on behalf of your organization
    Screenshot 2025-08-05 at 11.29.35.png
  7. Once the integration is connected and synced, a green checkbox will appear next to the integration.

    Screenshot 2025-08-05 at 11.50.15.png
     

Q&A

Q: What happens if the client secret expires?
A: You will need to provide a new client secret and reconnect the integration.

Q: How does Torii sync purchase invoice data?
A: By default, Torii syncs each paid purchase invoice as a single transaction, which includes all line items from that invoice.
If needed, this behavior can be adjusted so that each line item is synced as a separate transaction.
For more information or to request this change, please contact Torii Support.

Q: Can I filter which expenses are imported?
A: Yes. You can configure Torii to import only expenses posted to specific G/L accounts, allowing you to sync only the accounts used for SaaS purchases.
To request this configuration, please contact Torii Support.
 

For any further questions, please contact Torii Support.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request