# Auto refresh on sales order entry screen

**URL:** <https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445>\
**Category:** Epicor ERP 10\
**Created:** [September 3, 2018, 11:22am UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445 "2018-09-03T11:22:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcfreedombaby](https://www.epiusers.help/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mcfreedombaby](https://www.epiusers.help/u/mcfreedombaby)\
**Post date:** [September 3, 2018, 11:22am UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/1 "2018-09-03T11:22:01Z")

</div>

I’ve created a bpm to check moq versus customer price list on sales order entry screen and through up an exception if the user tries to enter a qty less than the first break quantity on the price list.

Only problem I have is the user then tries to fix it they get a row has been modified by another user - I understand why I am getting this message - the db and the screen are out of synch - and they need to do a manual refresh.

My guess is that I need to execute some custom code after the exception message to automatically do the refresh - can someone tell me/point me in the right direction of which object/method/syntax I would need to use to automatically refresh the sales order entry lines screen after I display an exception?

---

<div class="post-metadata">

**Author:** ![josecgomez](https://www.epiusers.help/user_avatar/www.epiusers.help/josecgomez/32/55731_2.png) [@josecgomez](https://www.epiusers.help/u/josecgomez)\
**Post date:** [September 3, 2018, 12:25pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/2 "2018-09-03T12:25:44Z")

</div>

Search the forum for BPM Refresh the answer has been given many times

---

<div class="post-metadata">

**Author:** ![mcfreedombaby](https://www.epiusers.help/letter_avatar_proxy/v4/letter/m/977dab/32.png) [@mcfreedombaby](https://www.epiusers.help/u/mcfreedombaby)\
**Post date:** [September 3, 2018, 12:29pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/3 "2018-09-03T12:29:39Z")

</div>

Groovy will do

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [September 3, 2018, 2:53pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/4 "2018-09-03T14:53:58Z")

</div>

You may also play with the method in Pre-Processing instead. It often fixes the refresh requirement.

---

<div class="post-metadata">

**Author:** ![DrewRust](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/da6949/32.png) [@DrewRust](https://www.epiusers.help/u/DrewRust)\
**Post date:** [January 7, 2020, 5:18pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/5 "2020-01-07T17:18:53Z")

</div>

“Search the forum for BPM Refresh the answer has been given many times”

Yes, but only in custom code. For those of us without that option, is there a solution?

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [January 8, 2020, 3:55am UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/6 "2020-01-08T03:55:26Z")

</div>

“Refresh” is most often a GetByID. This can be run as a widget in newer E10 versions (no code) in Post Processing.

---

<div class="post-metadata">

**Author:** ![DrewRust](https://www.epiusers.help/letter_avatar_proxy/v4/letter/d/da6949/32.png) [@DrewRust](https://www.epiusers.help/u/DrewRust)\
**Post date:** [January 8, 2020, 3:06pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/7 "2020-01-08T15:06:15Z")

</div>

Jason,  
thanks for the reply. I’m trying to do this as a widget, post processing, SalesOrder.MasterUpdate. I’ve added a BO for SO.GetByID as shown. Is this configured properly?

 ![Capture](https://epiusers.help/uploads/default/original/3X/4/6/46e673eed5e099b06071bb14d5db234d3753b125.jpeg)

---

<div class="post-metadata">

**Author:** ![Jason\_Woods](https://www.epiusers.help/user_avatar/www.epiusers.help/jason_woods/32/80101_2.png) [@Jason\_Woods](https://www.epiusers.help/u/Jason_Woods)\
**Post date:** [January 8, 2020, 6:23pm UTC](https://www.epiusers.help/t/auto-refresh-on-sales-order-entry-screen/47445/8 "2020-01-08T18:23:05Z")

</div>

Mostly, yes, however, one of the arguments for MasterUpdate is the Order Number (iOrderNum I believe). This would be better to use for the binding.
