Remote comparison
With a remote comparison you compare a local company with a company in another Business Central environment, for example production with a sandbox or two tenants with each other.
How it works
The local environment (source) signs in to the remote environment (target) through the Business Central API. The target creates a short-lived snapshot of the profile tables, the source downloads it and compares it with the local data.
- Configuration Compare must be installed in both environments. The license is checked in the source environment that starts the comparison.
- The field rules of the profile also apply to the snapshot: excluded fields are not transferred, masked fields only as a SHA-256 comparison value.
- Remote comparisons are read-only. To transfer values, use the JSON export (export Source) and import the file in the target.
Setup
1. App registration in Microsoft Entra ID
- Create an app registration in the tenant of the target environment.
- Grant the application permission Dynamics 365 Business Central → API.ReadWrite.All and admin consent.
- Create a client secret.
2. Register the application in the target environment
- In the target Business Central, open the Microsoft Entra Applications page and create the app registration with its client ID.
- Assign the CLM CONFIG COMPARE permission set and read permissions on the compared tables.
- Grant consent and set the state to Enabled.
3. Create the remote environment in the source
In the source, open Configuration Compare Remote Environments and create an entry:
| Field | Content |
|---|---|
| Code, Description | Any value |
| Enabled | Enable so that the environment can be used for comparisons |
| API Base URL | https://api.businesscentral.dynamics.com (default) |
| Tenant ID | Microsoft Entra tenant ID of the target |
| Environment Name | Name of the target environment, for example Production |
| Company ID | ID (SystemId) of the target company |
| Client ID | Client ID of the app registration |
| OAuth Scope | https://api.businesscentral.dynamics.com/.default (default) |
Store the client secret with Set client secret. It is stored encrypted in isolated storage and is not shown again; Client Secret Stored indicates whether one is stored.
Check the connection with Test connection.
4. Allow outgoing requests
Configuration Compare calls the target environment over HTTP. In the source, open Extension Management and enable Allow HttpClient Requests for Configuration Compare. In sandboxes this setting is disabled by default.
Start a remote comparison
- On the profile list or card, choose Start remote comparison.
- Select Profile, Source company and Remote environment.
- The results appear as for a local comparison; the run is marked as Remote Comparison.
Notes
- Table and field numbers must match in both environments, that is, the same app versions and extensions.
- Limit large tables with Record Filter to keep the snapshot small.
- A snapshot is valid for 30 minutes.
