969
Views
4
Comments
Solved
GetServerName() not working

Hi All

I tried to use GetServerName() inside assign of a server action, but when I check the output my server name is empty. Is there any solution for this issue. My URL is 

"http://"+ GetServerName()+"/" +GetEntryEspaceName()+"/ScreenName"
2018-10-29 08-31-03
João Marques
 
MVP
Solution

Hi Kavya,


The server name is available on the OutSystems meta model on the table Parameter from System. If you filter by Name = 'DefaultDNSName', the field Val has your domain (e.g. example.outsystemsenterprise.com).


Hope it helps.


Regards,
João

UserImage.jpg
kavya anbazagan

Thanks Joao, worked fine for me.

2019-09-27 15-19-12
Ulises Amaya

Thank you, the marked solution worked for me when  GetServerName() and GetRequestDomain() did not work because it is used in a Timer or a BPT.

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

Hi everyone, I’ve put together a forge component that I think might just be the answer to this issue.

https://www.outsystems.com/forge/component-overview/22949/environment-info-o11

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