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?
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
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.
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)
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.