Hello everyone, we are working with Business Events in Business Central and we are out of ideas of what is wrong. The context is that we have written a custom event that should be triggered when a value in a table is changed to “active”.
We have subscribed to the event by calling POST externaleventsubscriptions
The endpoint I have tried to call is the following
{ “companyId”: “xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx”,
“appId”: " xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ",
“notificationUrl”: “notificationUrl”,
“clientState”: " xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx ",
“eventName”: “productareapaid” }
We have followed the following step to step guide:
Business events on Business Central (preview) - Business Central | Microsoft Learn
The challenge we are facing is that when Business Central tries to call our notification endpoint, we receive a non-descriptive error in the “Business Event Activity Log”. The error is simply “Could not send notification from attempt x”
When I try to view details by pressing control + alt + f1, I see the following which doesn’t provide much help.
We have verified that:
- 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” ( HttpClient Data Type - Business Central | Microsoft Learn)
- Both the base app and the our extension app have “Allow HttpClient Requests”
- The notifications gets successfully sent with flow.
- When we call GET 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?