# Pass Variable from PreProcessing to PostProcessing

**URL:** <https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847>\
**Category:** Epicor ERP 10\
**Tags:** e10, bpm\
**Created:** [August 11, 2020, 1:53pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847 "2020-08-11T13:53:34Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![tthayer](https://www.epiusers.help/user_avatar/www.epiusers.help/tthayer/32/8183_2.png) [@tthayer](https://www.epiusers.help/u/tthayer)\
**Post date:** [August 11, 2020, 1:53pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/1 "2020-08-11T13:53:34Z")

</div>

Working on a BPM to add a miscellaneous charge to a line. I am able to capture the order and line in the preprocessing but not in the post processing as the post processing reports there is more than one line. Is there a way to pass the variables from the preprocessing to the post processing?

---

<div class="post-metadata">

**Author:** ![Arul](https://www.epiusers.help/letter_avatar_proxy/v4/letter/a/b2d939/32.png) [@Arul](https://www.epiusers.help/u/Arul)\
**Post date:** [August 11, 2020, 2:05pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/2 "2020-08-11T14:05:29Z")

</div>

Store the OrderLine in BPM CallContext.Number01 field and use that in Post Processing.

---

<div class="post-metadata">

**Author:** ![tthayer](https://www.epiusers.help/user_avatar/www.epiusers.help/tthayer/32/8183_2.png) [@tthayer](https://www.epiusers.help/u/tthayer)\
**Post date:** [August 11, 2020, 2:32pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/3 "2020-08-11T14:32:36Z")

</div>

Trying that now.

![image001.png](https://www.epiusers.help/uploads/default/original/3X/3/f/3fe02c7b0793cb585c3a1d2126e62741747272b1.png)

---

<div class="post-metadata">

**Author:** ![tthayer](https://www.epiusers.help/user_avatar/www.epiusers.help/tthayer/32/8183_2.png) [@tthayer](https://www.epiusers.help/u/tthayer)\
**Post date:** [August 11, 2020, 2:54pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/4 "2020-08-11T14:54:24Z")

</div>

Well that did not work.

I set 2 BPM Data fields on PreProcessing for SalesOrder.Update for CallContext Number01 and callContect Number02 and then enabled postprocessing directives

Then I created a Post Processing directive enabled by the PreProcessing and popped up a message to show the values and they were both 0

![image001.png](https://www.epiusers.help/uploads/default/original/3X/3/f/3fe02c7b0793cb585c3a1d2126e62741747272b1.png)

---

<div class="post-metadata">

**Author:** ![knash](https://www.epiusers.help/user_avatar/www.epiusers.help/knash/32/74179_2.png) [@knash](https://www.epiusers.help/u/knash)\
**Post date:** [August 11, 2020, 3:12pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/5 "2020-08-11T15:12:56Z")

</div>

That should have worked as we do that from time to time. Can you post screen shots of the preprocessing BPM.

---

<div class="post-metadata">

**Author:** ![tthayer](https://www.epiusers.help/user_avatar/www.epiusers.help/tthayer/32/8183_2.png) [@tthayer](https://www.epiusers.help/u/tthayer)\
**Post date:** [August 11, 2020, 5:08pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/6 "2020-08-11T17:08:17Z")

</div>

Well I got it to work. I made a mistake in the BPM using the condition. The condition was right but I linked the message on the false side. After fixing I do get the information. Thanks.

![image001.png](https://www.epiusers.help/uploads/default/original/3X/3/f/3fe02c7b0793cb585c3a1d2126e62741747272b1.png)

---

<div class="post-metadata">

**Author:** ![tthayer](https://www.epiusers.help/user_avatar/www.epiusers.help/tthayer/32/8183_2.png) [@tthayer](https://www.epiusers.help/u/tthayer)\
**Post date:** [August 12, 2020, 4:13pm UTC](https://www.epiusers.help/t/pass-variable-from-preprocessing-to-postprocessing/69847/7 "2020-08-12T16:13:58Z")

</div>

All good now. This can be closed.
