# SalesOrder Method Directive

**URL:** <https://www.epiusers.help/t/salesorder-method-directive/51963>\
**Category:** Epicor ERP 10\
**Tags:** e10, bpm\
**Created:** [January 29, 2019, 6:59pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963 "2019-01-29T18:59:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [January 29, 2019, 6:59pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/1 "2019-01-29T18:59:50Z")

</div>

I have a BPM set up for SalesOrder.Update, and it goes through a few very simple steps:

1. Check to see if ttOrderRel.UDI\_Number\_c has a value of “Test” (using “Test” simply as a test until I figure this out)
2. Show a message with ttOrderHed.OrderNum

Basically, what is happening is that the Message pops up when a SO has UDI\_Number\_c set to a value of Test. The message has ttOrderHed.OrderNum imported via a Field Query and a Table Query, and each one is blank.

 ![image](https://epiusers.help/uploads/default/original/2X/1/18c393a50a6dacb52adf7a4a55e1822e435271cb.png)

![image](https://epiusers.help/uploads/default/original/2X/f/f8e8f14f372372e94250778f878c8d0f5bee0d98.png)

Any ideas what I may be overlooking? I feel it has to be something simple, but for the life of me I can’t seem to figure it out.

---

<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:** [January 29, 2019, 7:05pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/2 "2019-01-29T19:05:42Z")

</div>

You are only doing this for Delete Rows? and UnChangedRows?

---

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [January 29, 2019, 7:11pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/3 "2019-01-29T19:11:24Z")

</div>

Nope…I had that just while troubleshooting…It is set for Added and Updated. I probably should have changed that back before taking the screenshot 🙂

---

<div class="post-metadata">

**Author:** ![Nancy](https://www.epiusers.help/letter_avatar_proxy/v4/letter/n/4af34b/32.png) [@Nancy](https://www.epiusers.help/u/Nancy)\
**Post date:** [January 29, 2019, 7:24pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/4 "2019-01-29T19:24:54Z")

</div>

What’s your condition look like?

---

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [January 29, 2019, 7:26pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/5 "2019-01-29T19:26:54Z")

</div>

It is very basic:

 ![image](https://epiusers.help/uploads/default/original/2X/5/50deccf3448ba953fef04307a1929fc01da3881a.png)

---

<div class="post-metadata">

**Author:** ![rtroutman](https://www.epiusers.help/letter_avatar_proxy/v4/letter/r/bb73d2/32.png) [@rtroutman](https://www.epiusers.help/u/rtroutman)\
**Post date:** [January 31, 2019, 8:01pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/6 "2019-01-31T20:01:24Z")

</div>

I am having the same issue. The problem seems to be trying to pull fields from tables other than the table that is triggering the BPM. I am trying to send an email that triggers based on when the OrderRel.NeedByDate changes. I want the email text to include the OrderHed.PONum and the OrderDtl.POLine. The BPM triggers correctly but the only info that populates is that new NeedByDate. I have tried several Methods. All trigger, all are missing the info. The email is useless without that PO and PO Line.

---

<div class="post-metadata">

**Author:** ![timshuwy](https://www.epiusers.help/user_avatar/www.epiusers.help/timshuwy/32/90122_2.png) [@timshuwy](https://www.epiusers.help/u/timshuwy)\
**Post date:** [January 31, 2019, 10:01pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/7 "2019-01-31T22:01:06Z")

</div>

Did you know that SalesOrder.Update doesn’t alwasy fire for NEW OrderRel records? This is because the FIRST OrderRel record for each OrderDtl is added in the background… so it is difficult to capture the FIRST orderrel created. You will see the second and beyond if you manually create the new OrderRel.  
maybe this is causing some confusion inside the BPM?

---

<div class="post-metadata">

**Author:** ![jhecker](https://www.epiusers.help/user_avatar/www.epiusers.help/jhecker/32/55571_2.png) [@jhecker](https://www.epiusers.help/u/jhecker)\
**Post date:** [February 4, 2019, 2:05pm UTC](https://www.epiusers.help/t/salesorder-method-directive/51963/8 "2019-02-04T14:05:35Z")

</div>

After some trial and error, I am beginning to think that _is_ the exact reason why this is failing. I’m going to have to figure out another way to go about this.
