# How to retreive the name of the current site

**URL:** <https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493>\
**Category:** General WorkflowGen Discussion\
**Created:** [September 26, 2019, 3:44pm UTC](https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493 "2019-09-26T15:44:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nlevrat](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nlevrat](https://discuss.workflowgen.com/u/nlevrat)\
**Post date:** [September 26, 2019, 3:44pm UTC](https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493/1 "2019-09-26T15:44:50Z")

</div>

Hello,  
I have two environments (two sites) :  
[https://wfg-dev.mycompany.com/wfgen/](https://wfg-dev.mycompany.com/wfgen/) and [https://wfg-prod.mycompany.com/wfgen/](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](http://ASP.NET) ?

---

<div class="post-metadata">

**Author:** ![eddy.daouk](https://yyz2.discourse-cdn.com/flex030/user_avatar/discuss.workflowgen.com/eddy.daouk/32/672_2.png) [@eddy.daouk](https://discuss.workflowgen.com/u/eddy.daouk)\
**Post date:** [September 27, 2019, 8:10pm UTC](https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493/2 "2019-09-27T20:10:58Z")

</div>

Hi @nlevrat,

You can use:

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

Regards,  
Eddy.

---

<div class="post-metadata">

**Author:** ![kevin.lee](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@kevin.lee](https://discuss.workflowgen.com/u/kevin.lee)\
**Post date:** [September 28, 2019, 9:56am UTC](https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493/3 "2019-09-28T09:56:56Z")

</div>

Or maybe directly from macro?  
 ![image](https://canada1.discourse-cdn.com/flex030/uploads/workflowgen/original/1X/5325e355d8605f3f1c8c98c7ca5884d390a7402a.png)

I have it available in my v7.15.5 instance

---

<div class="post-metadata">

**Author:** ![nlevrat](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nlevrat](https://discuss.workflowgen.com/u/nlevrat)\
**Post date:** [October 4, 2019, 10:42am UTC](https://discuss.workflowgen.com/t/how-to-retreive-the-name-of-the-current-site/1493/4 "2019-10-04T10:42:19Z")

</div>

Exact !  
These parameters also exist in version 7.14.5  
Thank
