12
Views
2
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"
Rank: #70
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