# Get Server Name or Database in BPM C# **Category:** [Epicor ERP 10](https://www.epiusers.help/c/e10/5) **Created:** 2016-12-13 19:55 UTC **Views:** 2803 **Replies:** 1 **URL:** https://www.epiusers.help/t/get-server-name-or-database-in-bpm-c/36598 --- ## Post #1 by @amurdock How would I get the Server name or database from a BPM C# code? I'm trying to make an if/then for my test DB so automatic emails only go to me! --- ## Post #2 by @josecgomez https://epiusers.help/t/accessing-a-session/36377/2 --- **Canonical:** https://www.epiusers.help/t/get-server-name-or-database-in-bpm-c/36598 **Original content:** https://www.epiusers.help/t/get-server-name-or-database-in-bpm-c/36598