Skip to main content

Posts

Showing posts with the label HTTP Calls

Solution to 'The request was blocked by the runtime to prevent accidental use of production services' error while making HTTP Call in Business Central

Introduction: Recently, I have been working with Business Central's Http related Data Types. In on esuch requirement where I had to make a POST call with JSON content. I'm sure that everything I was doing is perfectly fine and yet I get this weird error from Business Central while making an HTTP call to third party APIs Error says: 'The request was blocked by the runtime to prevent accidental use of production services'  Error: The request was blocked by the runtime to prevent accidental use of production services Pre- requisites : Understanding how APIs work. Understanding of AL Language. VS Code Microsoft Dynamics Business Central Books & References: https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/methods-auto/httpcontent/httpcontent-data-type Solution: I have worked with multiple API calls from Business Central to 3rd Party softwares and they almost always worked such as this one  Generate Hash Value and Integrate Form Data Third...