webhooks in business central
HTML-код
- Опубликовано: 6 фев 2025
- In this video we will cover the topic of Webhooks in Business central
Azure function code on github: github.com/dfr...
URLS:
Get list of APIs:
GET : api.businessce...{{TeantID}}/{{EnviromentName}}/api/microsoft/runtime/beta/companies({{CompanyID}})/webhookSupportedResources
Subscriptions:
GET: api.businessce...{{TeantID}}/{{EnviromentName}}/api/v2.0/subscriptions
POST: api.businessce...{{TeantID}}/{{EnviromentName}}/api/v2.0/subscriptions
Blogpost: fredborg.org/?...
is there a way to consume webhooks from an external solution in business central?
@Diya-d3c well it depends on the external system, because you should be able to create a codeunit, that you could expose as the notification url, however it will require that the other system can use oauth as part of their notification... to be honest I would not let Business Central be a direct subscriber to an other system webhooks, it would much easier and cleaner to have an azure function as a broker. And then let the azure function subscribe to the external system, and then when triggered retrieve the data, and push it to Business Central
Great. this is really helpful. But I can not test the Azure function. is there any other way to test it?
Well you can pretty much use any http enabled endpoint, like logic apps, power apps or Web apps, the only requirement is that it can receive and send http requests and responds.
I was told that webhooks have limited support. Has this changed in 2024?
It depends on what you mean by limited? After my experience they can do what you would expect from webhooks