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 theFinancials.ReadWrite.Allpermission (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:
- Go to App registrations > Click New registration
- 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
-
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-
Select Web
- Enter the URI:
- Click Configure
-
- From the overview page, copy the Client ID and Tenant ID
- Go to API permissions > Add a permission
- Under Request API permissions, select:
-
Dynamics 365 Business Central > Delegated permissions > Add
Financials.ReadWrite.All
-
- Click on Add permissions
- Click Grant admin consent and confirm
- Go to Certificates & secrets > New client secret
- Enter a description and expiration, then click Add
- Copy the Value (not the Secret ID) – this is your Client Secret
In Dynamics 365 Business Central:
- Search for Microsoft Entra Applications
- Click New and paste in the Client ID
- Set Description to Torii and State to Enabled
- Under User Permission Sets, add
D365 BASIC ISV - Click Grant Consent and accept the prompt
- Verify that the consent was successful
- Go to Settings > Admin Center
-
Under Environments, locate the Environment you wish to connect to Torii
How to Connect the Integration
- Go to the Integrations page in Torii.
- Select the Microsoft Dynamics 365 Business Central tile.
- Click Connect.
- Enter the required values:
- Tenant ID
- Environment Name
- Client ID
-
Client Secret
- Click Connect and follow instructions to connect the integration
- Mark the Consent on behalf of your organization
-
Once the integration is connected and synced, a green checkbox will appear next to the integration.
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.
For any further questions, please contact Torii Support.