# Get Current Plant ID in BPM

**URL:** <https://www.epiusers.help/t/get-current-plant-id-in-bpm/59833>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [September 17, 2019, 9:27am UTC](https://www.epiusers.help/t/get-current-plant-id-in-bpm/59833 "2019-09-17T09:27:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Isai](https://www.epiusers.help/letter_avatar_proxy/v4/letter/i/2acd7d/32.png) [@Isai](https://www.epiusers.help/u/Isai)\
**Post date:** [September 17, 2019, 9:27am UTC](https://www.epiusers.help/t/get-current-plant-id-in-bpm/59833/1 "2019-09-17T09:27:08Z")

</div>

Dear Team,

How to get the current plant id for the company (logged in company) in BPM? in update method.

---

<div class="post-metadata">

**Author:** ![A.Baeisa](https://www.epiusers.help/user_avatar/www.epiusers.help/a.baeisa/32/8988_2.png) [@A.Baeisa](https://www.epiusers.help/u/A.Baeisa)\
**Post date:** [September 17, 2019, 10:19am UTC](https://www.epiusers.help/t/get-current-plant-id-in-bpm/59833/2 "2019-09-17T10:19:50Z")

</div>

> [@Data Directives displaying user name in email](https://www.epiusers.help/t/data-directives-displaying-user-name-in-email/55723/5):
>
> @hkeric.wci @Jun_Mark_Piscos as i said before that UserName does not exist within client variables, but just found today that it does exist within session variables, i have not tried it though

---

<div class="post-metadata">

**Author:** ![Paul\_Mayevsky](https://www.epiusers.help/user_avatar/www.epiusers.help/paul_mayevsky/32/19907_2.png) [@Paul\_Mayevsky](https://www.epiusers.help/u/Paul_Mayevsky)\
**Post date:** [September 17, 2019, 12:55pm UTC](https://www.epiusers.help/t/get-current-plant-id-in-bpm/59833/3 "2019-09-17T12:55:54Z")

</div>

I assume you are doing a method directive. In Base Processing, you can use the “Set BPM Data Field” function to set one of the Character fields to current plant and then use it in your BPM.

Once you select the “Set BPM Data Field” make a change to what your target field is and what the source is.

 ![2019-09-17_0851](https://epiusers.help/uploads/default/original/3X/d/3/d316c7f30b16e270b6ff7cf72c0c8cb1ff117754.png)

Then for the “specified” expression. Select “Current Plant”. This will bring Plant into your current set of data. You can use that “Character1” field that you have now set in your data set.  
 ![2019-09-17_0853](https://epiusers.help/uploads/default/original/3X/d/2/d274116f7e8e60ef6b05afd60fdb5eaaf565764e.png)
