Hello,
I hope I'm in the right forum. I'm a developer using Business Central for learning purposes. I set up a BC VM locally using Docker with BcContainerHelper and am currently experimenting with web services.
When I use OData for simple POST/GET requests to my tables (one record at a time), everything works well. However, when I try to make more advanced API calls, such as batch requests or calling methods within a codeunit, I encounter issues with Basic Authentication.
Am I correct in understanding that OAuth 2.0 is required for these types of requests? If so, how can I generate an OAuth token? My research suggests setting up something in Azure, but I’m unsure if this applies only to cloud instances of Business Central or if it’s also available for local VMs like mine.
Thank you for your guidance!