Multi Entity Management
Cross-environment setup
Updated: May 2025 / 7.5.4 - Work in progress
1. Enable RESTful webservice communication
This guide will show how to Setup RESTful communication in both the Subscriber and Publisher Environement
2. Subscriber setup
codeunit 5397805 “XTEMEM Mem Endpoints” Kald denne “MemEndpoints” og aktiver den.
Der er en fejl i BC (som MS ikke har intentioner om at fikse) som gør at den ikke selv kan lave URL’en.
-
URL skabelon for Saas miljøer: https://api.businesscentral.dynamics.com/v2.0/{Tenant ID}/{Environment Name}/ODataV4/MemEndpoints_%1
-
URL skabelon for OnPrem miljøer: http://{Serivce Tier}:7048/BC/ODataV4/MemEndpoints_%1?tenant={Tenant Name}
* Hvis miljø er single tenant så undlad ?tenant={Tenant Name}
3. Publisher setup
Forbind til REST subscriber På siden “Subscriber Company List” udfyldes:
- “Rest Endpoint Url” med det link vi lige har lavet. (f.eks. http://bc221dk:7048/BC/ODataV4/MemEndpoints_%1?tenant=default)
- “Target Company” med regnskabsnavn på din abonnent. (f.eks. Cronus Danmark A/S)
6.3. The Subscriber Database is setup with “Windows Authentication”.
- Setup one Service Tier to handle all users with Windows Authentication.
- Setup another Service Tier to handle the Webservice access with NavUserPassword.
6.4. SOAP Exception Business Central 16
- The Cross Database Replication suddenly stop working.
-
2 example of error messages
-
- Solution: Restart of the instance.
6.5. SOAP URL containing “default” more than once.
- The automatic created SOAP URL contains “default” more than once
-
Example of incorrect url http://<environment_name>-default:7047/BC/WS/DE Subscriber Master/Codeunit/MemSubDataService?tenant=<environment_name>-default
-
Solution change the above url to http://<environment_name>:7047/BC/WS/DE Subscriber Master/Codeunit/MemSubDataService?tenant=default
-