Hello!
I want from an external application (online store) to call a procedure from Business Central, which will perform the indicated operations in the system.
In the store, I have the ability to call a webhook for a specific (defined by the store provider) event, such as the creation of a new product.
How to prepare BC to receive such HTTP with JSON content? In addition, I would probably have to pass some token for authorization. I already have App Registration prepared on Azure, which will return a token to the BC after providing clientId, password and tenantId by querying to:
login.microsoftonline.com/.../token
For example, I would like the BC to accept a JSON from the store with information about a new product, and then call a procedure I created to create a new product based on the JSON received.
Is something like this possible?
Best Regards!