There are three main steps to configuring the connection - you may need help from an IT admin to complete the first step.
- Create credentials in Azure (an 'app')
- Configure Business Central to accept a connection from Trelica
- Connect Trelica to Business Central
What data does Trelica pull?
By default Trelica will pull Purchase invoice data from Business Central. Line items that do not match the account codes specified will be discarded.
Alternatively, when you connect you may chose to take data from the General Ledger instead. This has the benefit that you can configure Security Filters in Business central. Security Filters don't work with Purchase invoice data as Business Central's API does not support filtering to Purchase invoice line items.
Create a new app in Azure
This also involves multiple steps:
- Register the basic app details
- Assign API permissions
- Create credentials
Register the app
- Log in to Azure and find App registrations:
- Click New registration.
- Enter a name (e.g.
Business Central
). - Choose Accounts in this organizational directory only (Single tenant).
- Enter a Redirect URI:
- Choose Web
- Enter
https://businesscentral.dynamics.com/OAuthLanding.htm
- Click Register.
Configure API permissions
- On the API permissions tab, click Add a permission
- Under the Microsoft APIs tab choose Dynamics 365 Business Central
- Choose Application permissions and then under API tick API.ReadWrite.All
- Click Add permissions.
- Finally, click Grant admin consent:<> </>
Create a new secret
- Go to Certificates & secrets
- Click New client secret
- Give the secret a name (e.g.
Trelica
) and chose the Expiry duration that you are comfortable with (we recommend 12 or 24 months). - Click Add
Collect the IDs from Azure
You need three IDs which you can copy from Azure:
- From the Certificates & secrets tab copy the Client Secret Value (not the Secret ID)
The Client secret value will only be available for you to copy for a short period of time. If you are unable to view or copy it, then just create new one.
- From the Overview tab copy the Application (client ID) and the Directory (tenant) ID
Configure Business Central
- Search for
Entra
and click Microsoft Entra Applications:
- Click New:
- Paste the Application (client ID) from Azure AD into the Client ID field:
- Enter Trelica as the Description and then set the State to Enabled
- Ensure that the D365 BASIC ISV user group is assigned:
- Click Grant Consent:
- A popup will appear (you may need to allow popups in your browser). Click Accept:
- In the main Dynamics browser window, you will see a message confirming that consent was given:
Connect Trelica to Business Central
- Identify the name of your Business Central environment. Login to Business Central and go to Admin Center under the Settings cog.
- In the Admin Center you will see a list of environments. You will need to copy the name of the environment that you want to connect to Trelica.
The underlining on the links makes underscore (_) characters look like spaces. Click through on the link to see the name without any links to be sure you are entering the right name. - In Trelica, go to Admin > Integrations > Business Central
- Click Connect and enter the Environment name and the IDs that you collected earlier:
- Click Connect again.
- Select the expense categories you want to import from, and click Import:
Comments
0 comments
Please sign in to leave a comment.