Forum Discussion
bhandelman
3 years agoNew Contributor III
How to identify which environment a BR is running in?
I have some business rules that need to identify which environment the BR is running in. This is because they does different things in each environment. In one BR i want the process to run in Prod bu...
- 3 years ago
You could retrieve the connection URL using,
si.WebServerUrlUsedByClient& differentiate the Environment by identifying specific keywords (Dev/Stage/Prod) in it.
JussiPukki
2 years agoContributor
si.WebServerUrlUsedByClient gave an empty string when I tried using it in v8.2.1. As an alternative solution, I ended up creating a system level dashboard parameter to store this info in the framework database. Should work for us as we only copy applications between environments.
DanielWillis
2 years agoValued Contributor
Try this.
Dim harvestFolder As String = BRAPi.Utilities.GetFileShareFolder(si, FileShareFolderTypes.BatchHarvest, Nothing)
Dim serverName = harvestFolder.Split("\")(2)
Just grabbed it out of some code lying around but believe it works.
Related Content
- 2 years ago
- 2 years ago
- 2 years ago
- 2 years ago