I have a Business Central container in Azure. I am able to connect to the BC instance. I perform a search for Users and retrieve the "Web Access Key"
I then call the following in Postman:
api.businesscentral.dynamics.com/.../<Tenant Id>/sandbox/api/beta/companies
witH Basic Auth: username is the name in BC password is the Web Access Key.
The tenant Id i just retrieved from Azure Active Directory ->Overview
I get the following error:
{
{
"error": {
"code": "Authentication_InvalidCredentials",
"message": "The server has rejected the client credentials. CorrelationId: <GUID>."
}
}
Is there something I am missing here ?
I need to get the company id back so I can call the following , because I am using webhooks for push notifications like the following :
GET
https://{businesscentralPrefix}/api/microsoft/runtime/beta/companies({{companyId}})/webhookSupportedResou rces?$filter=resource eq 'v2.0*'
Also if i try to call the following:in Postman:
api.businesscentral.dynamics.com/.../<IP ADDRESS SAAS CONTAINER>/BC/Sandbox/api/microsoft/automation/v1.0/$metadata
It gives back
{
"error": {
"code": "RequestDataInvalid",
"message": "Request data is invalid."
}
}
I would have expected to get back some data to be able to get companies and there id's .
Any ideas on this ?