I am getting below error when I am compiling the code in VS code editor
I am using below code in code unit
I am using the below version of VS code editor
Version: 1.33.1 (user setup)Commit: 51b0b28134d51361cf996d2f0a1c698247aeabd8Date: 2019-04-11T08:27:14.102ZElectron: 3.1.6Chrome: 66.0.3359.181Node.js: 10.2.0V8: 6.6.346.32OS: Windows_NT x64 10.0.17134
Am I missing something? any suggestion.
When you create an AL extension, it is by default targeted to be deployed in the cloud. And this imposes certain limitations - you cannot use internal methods. So, you either have to change the target to "Internal", or remove any reference to Http Web Request Mgt. codeunit, as nearly all its methods are internal.
You can replace it with HttpClient data type.
And about target levels:
Thanks Alexander for your response. I will check and update you.