How is your experience with the OutSystems Community?
134
Views
4
Comments
ODC: get current stage?
Question

Hi all,

in ODC, is there a way to retrieve the current stage (dev/tst/prd) we are in?
In O11 we were able to use the system tables to the determine the environment, but ODC does not have system tables.

If not, is it best practice to create a setting for the stage name?

2023-08-28 07-00-10
Paulo Torres
Champion

Hello,

Maybe you can open a support ticket asking this a the ODC documentation still doesn't exists. But have a Setting with this is not a really bad practise in my point of view.

Regards

2026-07-23 14-34-51
Nuno Reis
 
MVP

In ODC the only hint on where you are is GetBookmarkableURL.

In O11 I would use a Site Property so yes, a Setting makes sense. Preferably one with a public action attached so you can check on all apps.


2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Agree with Nuno, using the GetBookmarkableURL you can make a function that returns the stage name by inspecting the value of the GetBookmarkableURL built in function. Given that you know the part of the URL that distinguishes the stages (.dev .qa .tst)


2025-09-02 13-37-45
Ricardo Monteiro

Hey folks, I know that this is an old post, but have a look at my forge component RuntimeContext. It doesn't rely on settings and you don't have to setup anything.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.