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

Community site session details

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

only be visible or enabled when the environment is Production

(0) ShareShare
ReportReport
Posted on by 78
Dear all
I want to create an action on a page that should only be visible or enabled when the environment is Production, and hidden/disabled in Sandbox or Development. What is the recommended approach in AL to conditionally control actions based on the current environment?
 
thank you
I have the same question (0)
  • Suggested answer
    Sahan Hasitha Profile Picture
    1,766 on at
    only be visible or enabled when the environment is Production
    hi 
    thy this
  • Suggested answer
    Sahan Hasitha Profile Picture
    1,766 on at
    only be visible or enabled when the environment is Production
    hi
     
    you can use the Environment Information page provides key details about the current tenant and environment. It shows whether you are working in Production or Sandbox, the environment name, region, and version details. This information is useful for administrators and developers to quickly verify where they are working, especially when multiple environments exist, and helps ensure that changes or tests are performed in the correct place

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 3,180

#2
Sumit Singh Profile Picture

Sumit Singh 3,063

#3
YUN ZHU Profile Picture

YUN ZHU 2,317 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans