113
Views
6
Comments
Solved
How Can I get Environment Name - ODC
Question

Hey all, good evening.


I'm trying to identify in ODC the environment name, like we can do in OS11, for example, with GetServerName or even GetMachineName or even using system tables...
Any idea? Since ODC do not allow us to use system tables anymore...

Any help?

2022-05-01 03-47-53
Jun Mun Chan
Solution

Hi,

maybe this API can help

UserImage.jpg
Daniel Nogueira

Thanks Jun, it solves my problem.


2019-01-07 16-04-16
Siya
 
MVP

@Daniel Nogueira , the API mentioned by @Jun Mun Chan will get you the list of stage names. Does this solve your question ? Or are you looking to get the name of the host your app is currently running ? Please see the built in function GetDefaultDomain helps (https://success.outsystems.com/documentation/outsystems_developer_cloud/outsystems_language_and_elements/built_in_functions/url/)

UserImage.jpg
Daniel Nogueira

Hi Siya, thanks for your reply.
The GetDefaultDomain according the link you posted, is inside ODC, however, I cannot see it in ODC. Just GetOwnerURLPath() and GetBookmarkableURL() are available for me. 
And I have also tried the GetBookmarkableURL(), and for some reason, I'm getting empty on it.

UserImage.jpg
Daniel Nogueira

Hmmm, I got it. 
I thought it was listed under built-in functions as in OS documentation...Thanks for sharing

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