How to retreive the name of the current site

Hello,
I have two environments (two sites) :
https://wfg-dev.mycompany.com/wfgen/ and https://wfg-prod.mycompany.com/wfgen/
When I start a request I need to know in which environment I am to use the site name as a parameter.
How to do it in ASP.NET ?

Hi @nlevrat,

You can use:

System.Configuration.ConfigurationManager.AppSettings["ApplicationUrl"].ToString()

Regards,
Eddy.

Or maybe directly from macro?
image

I have it available in my v7.15.5 instance

1 Like

Exact !
These parameters also exist in version 7.14.5
Thank