codeunit 80004 TutorialAPI
{
procedure Hello(): Text
begin
exit('Hello World');
end;
}
The Azure Active Directory App has got following user groups and permissions:
A POST to https:/api.businesscentral.dynamics.com/v2.0/{{Tenant-ID}}/{{Env_Name}}/ODataV4/TutorialAPI_Hello without any json payload will bring up following error with status code 400 bad request and message:
{/error/: {/code/: /Internal_ServerError/,/message/: /Sorry, the current permissions prevented the action. (CodeUnit TutorialAPI Execute: ) CorrelationId: d335ed99-1ac4-4029-9815-f9048e8d05d7./}}