web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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?
I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,431 Super User 2025 Season 2 on at
     
    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
  • Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at
  • Suggested answer
    Andrés Arias Profile Picture
    4,190 Super User 2025 Season 2 on at
    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
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    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
    Tech-Lucky Profile Picture
    1,267 Super User 2025 Season 2 on at
    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;

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans