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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Add a settings field in extension configuration page

(0) ShareShare
ReportReport
Posted on by 10

Hello , 

I'm trying to develop an extension which needs like a global variable , what i'm trying do is add a field to the page ( see pic below ) , which will be used as a variable across the pages of the extension , and this variable could be edited by the BC Admin. is there a way to achieve that ?  thank you

pastedimage1611224557059v1.png

  • Suggested answer
    JAngle Profile Picture
    161 on at

    Typical thing would be use a setup table like sales & receivables setup, or create your own similar one. Then in code you can get the setup and use a Boolean field as an on and off switch for your functions

  • RiyadhBen Profile Picture
    10 on at

    Good idea , but how would i show it in the UI for the users ? so they can change it as they want

  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    This is different from your original inquiry (this variable could be edited by the BC Admin). If this has to be a per user setting then you have to create a table that holds one record per user and the value stored (different from a company wide setup). If every user has their own value then simply do a GET in every OnOpenPage of the relevant record with PK UserID and display the value in the page. If they need to change it, create an action that do a MODIFY on that specific record. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans