Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

AllowHttpClientRequests property is True by default

(3) ShareShare
ReportReport
Posted on by 6
Is there a way to setup default value for AllowHttpClientRequests on Extensions Settings
In customized app, by default it's always True, but needed to be false?
  • Suggested answer
    Tech-Lucky Profile Picture
    1,101 on at
    AllowHttpClientRequests property is True by default
    Hi,

    You can use the code below by creating a new Codeunit with SubType = Installed.

    Then, execute this function within the OnInstallAppPerDatabase trigger for your custom extensions.
     
        local procedure DisableWebServiceCalls()
        var
            NavAppSettings: Record "NAV App Setting";
            AppInfo: ModuleInfo;
        begin
            NavApp.GetCallerModuleInfo(AppInfo);
            NavAppSettings."App ID" := AppInfo.Id;
            NavAppSettings."Allow HttpClient Requests" := false;
            if not NavAppSettings.Insert() then
                NavAppSettings.Modify();
        end;
  • Suggested answer
    YUN ZHU Profile Picture
    85,982 Super User 2025 Season 1 on at
    AllowHttpClientRequests property is True by default
    Maybe you can try the following solution.
    Dynamics 365 Business Central: How to set Allow HttpClient Requests for multiple extensions (selected extensions) at the same time
     
    Thank.
    ZHU
  • Suggested answer
    Andrés Arias Profile Picture
    1,378 on at
    AllowHttpClientRequests property is True by default
    Hello,
     
    In a standard way you could not change the default value. You would have to assign it from AL code.
     
     
     
    I hope you can help.
     
    Regards,
     
    Andres
  • Gerardo Rentería García Profile Picture
    20,949 Most Valuable Professional on at
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    24,507 Super User 2025 Season 1 on at
    AllowHttpClientRequests property is True by default
     
    In Business Central, the AllowHttpClientRequests setting controls whether extensions are allowed to make HTTP requests using the HttpClient object. This setting is per extension and must be declared in the app.json file of your AL project.
    Unfortunately, there is no way to set a global or environment-wide default for AllowHttpClientRequests. It must be explicitly defined in each extension.
     
    Best regards,
    Mohamed Amine MAHMOUDI

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans