We have subscribed to the event by calling POST https:/api.businesscentral.dynamics.com/v2.0/{{Environment}}/api/microsoft/runtime/v1.0/externaleventsubscriptions
The endpoint I have tried to call is the following
{ “companyId”: “xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,
“appId”: / xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /,
“notificationUrl”: “https://xxx/productareapaid”,
“clientState”: / xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /,
“eventName”: “productareapaid” }
Business events on Business Central (preview) - Business Central | Microsoft Learn
When I try to view details by pressing control + alt + f1, I see the following which doesn’t provide much help.
- The user has all necessary rights
- The notification URL is publicly accessible and there are no firewalls
- Both the base app and the our extension app have “Allow HttpClient Requests” https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpclient/httpclient-data-type
- The notifications gets successfully sent with flow.
- When we call GET https:/api.businesscentral.dynamics.com/v2.0/{{Environment}}/api/microsoft/runtime/v1.0/externaleventsubscriptions, we can see that the subscription is successful with the correct notification URL
The Business Central solution is running as a service, so we do not have the possibility of logging on to the server and testing the connection to our notification URL.
Has anyone worked with Business Events that have any insights on what could be the problem here?