789
Views
6
Comments
Solved
Retrieve the name of the environment
Question

Hi all !

I have a simple / stupid question ...

I have 2 Outsystems platform: an Intradev + an Intranet.

Can I get the name of the environment where my page is running ?

I would like to distinguish the two ...


Thanks !

LUCA


2023-04-06 11-24-23
Paulo Zacarias
Solution

Hi,
Just try the GetMachineName() from the HtmlRenderer xif and tell us if it worked for you.


Best Regards

2023-04-06 11-24-23
Paulo Zacarias

Hello Luca,

I think that GetServerName() from Richwidgets will solve your issue.

Best Regards

2019-11-26 09-13-57
Luca De Mori

Hi Paulo,

I already tried it, but it returns me an empty string ... maybe I did something wrong ?

2023-04-06 11-24-23
Paulo Zacarias

Hello Luca, 

you are using that action in an email or timer? Apparently, it will not work on those flows.

Another thing you can try is the action GetMachineName() from the HtmlRenderer xif.

2019-11-26 09-13-57
Luca De Mori

Sorry ... I forgot to tell you ...

I tried it in a process (I would like to schedule it)

2023-04-06 11-24-23
Paulo Zacarias
Solution

Hi,
Just try the GetMachineName() from the HtmlRenderer xif and tell us if it worked for you.


Best Regards

2019-11-26 09-13-57
Luca De Mori

great !


GetMachineName() works fine !

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