# Data Directive - notifications from production server only?

**URL:** <https://www.epiusers.help/t/data-directive-notifications-from-production-server-only/76872>\
**Category:** Epicor ERP 10\
**Tags:** e10, bpm\
**Created:** [March 23, 2021, 3:19pm UTC](https://www.epiusers.help/t/data-directive-notifications-from-production-server-only/76872 "2021-03-23T15:19:47Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Asz0ka](https://www.epiusers.help/letter_avatar_proxy/v4/letter/a/a698b9/32.png) [@Asz0ka](https://www.epiusers.help/u/Asz0ka)\
**Post date:** [March 23, 2021, 3:29pm UTC](https://www.epiusers.help/t/data-directive-notifications-from-production-server-only/76872/2 "2021-03-23T15:29:45Z")

</div>

You’ll need some custom code to do this sort of check:

> [@BPM programmatically determine which DB(live vs pilot)](https://www.epiusers.help/t/bpm-programmatically-determine-which-db-live-vs-pilot/68742):
>
> I’d like one of our bpms to know what database it is running in, so it can behave differently in live vs in a test environment. Is there a way to query from a BPM what database we are currently running in?

In later versions you can set an app server as ‘Production’ in the epicor admin console. You can then check for the production flag in a BPM if block.

---

_[View the full topic](https://www.epiusers.help/t/data-directive-notifications-from-production-server-only/76872)._
