Web Replication Point-to-Point
This method is the original web replication approach, using OData web services to replicate the data. In this setup, replication occurs through web service calls.
It is best suited for scenarios where data needs to be replicated between different environments, whether on the same tenant or across multiple tenants.
The process to set up what data to send and to which location is done by setting up a scheduler job. For more information see Process. The replication job runs codeunit 99008923 with Use Web Replication enabled, and a second job, the web replication module job (codeunit 99009521), replicates the data.
For each Distribution Location configured as a destination, the following setup is required for this method:
- In the Distribution Location Card, open the Web Server FastTab and fill in the connection to the destination. For a SaaS destination, this is typically:
- Web SSL: Enabled
- Web Server SaaS: Enabled
- Web Server Computer Name: api.businesscentral.dynamics.com
- Web Server Version: v2.0
- Web Server Tenant, Web Service Environment Name and Web Service Company Name: the tenant, environment and company of the destination.
- Web Server AuthType: S2S, with the Web Service Client ID and Web Service Client Secret of the Entra application used for the authentication.
- In the same card, for the Web Replication Method, select option Web Service (OData 4) from the dropdown.

- Run Test Web Connection on the card to verify the connection.
- At the destination, publish the web service that receives the data: in the Web Services page, publish codeunit 99009520 as an OData V4 web service with the service name WebReplicationODataMgt.

(Click image to enlarge)
Process overview
With this method, HO sends the data packet directly to each destination through a web service call. The table below shows what to expect at each stage, and where to look. The pages are opened from the Scheduler Setup page, using the Related action and then Web Replication.
| Stage | Job | What happens and what to expect | Where to look |
|---|---|---|---|
| 1. Request created | Replication job (99008923, Use Web Replication) | Creates the request in the Request Queue. The Data Packet Created field is False. | Request Queue |
| 2. Packet and distribution created | Web replication module job (99009521) | Creates the data packet and sets Data Packet Created to True. Then creates one distribution entry for each destination location. | Packet Data and Distribution Queue (from the Request Queue, Related action) |
| 3. Delivered to the destinations | Web replication module job (99009521) | Sends the data packet to each destination through a web service call, to codeunit 99009520 (WebReplicationODataMgt). A distribution entry is removed when its data is delivered. For each location, the oldest request is processed first, and if it fails, no newer request is processed for that location. | Distribution Queue |
| 4. Request closed | Web replication module job (99009521) | When the request is delivered to all locations, it is moved to the Request Log. If you cancel a request, the locations that did not receive it are listed in the Distribution Canceled Log. | Request Log and Distribution Canceled Log |
To compare this flow with the other web replication methods, see Comparison of the methods.
Verify the setup
- Make sure the two Scheduler jobs described in Before you start exist.
- Run the replication job (codeunit 99008923 with Use Web Replication) and check that a request appears in the Request Queue.
- Run the replication job (codeunit 99009521). The request should leave the queue and appear in the Request Log.
- If the request stays in the queue, follow Troubleshooting.
Requests that cannot be delivered
Note: If the oldest request is not processed for a given location, no other requests are processed for that location. This can result in a situation where all requests have been processed for all distribution locations except one which has perhaps a list of request waiting.
You can see status for individual locations in the Request Queue list by clicking the Related action and selecting Distribution Queue.
Cancel a request
You can cancel a request any time.
- Click Actions - Cancel Selected Requests. When this is done, the request is moved to the Request Log and all procession data are removed. The Request Log now indicates that the request was canceled.
- When a request is canceled, an additional Distribution Canceled Log is created for the remaining locations still waiting, therefore listing locations that never get this data. This side effect of canceling is only recommended as last resort when this data (request) can never be delivered to the remaining locations.
Note: A request is not closed (that is moved to the Request Log), until it has been delivered to all locations or canceled.
Note: Any limitations that may have existed for the web replication are still in place - see Web Replication Limitations.