# MaterialQueue Method Directive

**URL:** <https://www.epiusers.help/t/materialqueue-method-directive/115501>\
**Category:** Epicor ERP 10\
**Tags:** e10-erp\
**Created:** [June 6, 2024, 8:19pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501 "2024-06-06T20:19:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TMorgan](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@TMorgan](https://www.epiusers.help/u/TMorgan)\
**Post date:** [June 6, 2024, 8:19pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/1 "2024-06-06T20:19:01Z")

</div>

I am trying to use a method directive for materialqueue on update to change the bin a part is pulling from (primary) to a new bin to pull from. We are doing this because we want a specific part to pull from a specific bin for a specific customer. Whenever I try to use the materialqueue method it does not hit my alert message. Anyone ideas?

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [June 7, 2024, 1:09am UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/2 "2024-06-07T01:09:40Z")

</div>

I would just do the update in transaction in a data directive. with a condition and a setter widget this should be a simple bpm.

---

<div class="post-metadata">

**Author:** ![TMorgan](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@TMorgan](https://www.epiusers.help/u/TMorgan)\
**Post date:** [June 7, 2024, 2:23pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/3 "2024-06-07T14:23:20Z")

</div>

CustID is not in the data directive.

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [June 7, 2024, 7:48pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/4 "2024-06-07T19:48:37Z")

</div>

That is why joins were invented to take what you have and get what you need. You have OrderNum which has the CustNum to get the CustID.

set ordernum as a variable  
 ![image](https://www.epiusers.help/uploads/default/original/3X/c/b/cb2fadc7e05c165c149b1de2fd2a6413d71de3dc.png)  
condition and setter  
 ![image](https://www.epiusers.help/uploads/default/original/3X/9/f/9f3b0555e1a1d406cead6e4bc5ba26db4d52e861.png)

 ![image](https://www.epiusers.help/uploads/default/original/3X/1/7/1774d913f7d4b5eb3224b142777380084b9287d0.png)

order is equal to the ordernum you set

 ![image](https://www.epiusers.help/uploads/default/original/3X/8/b/8bd7e481c0bda2e088a3151e528ea70be2307da4.png)  
cust is your customer ID  
 ![image](https://www.epiusers.help/uploads/default/original/3X/d/1/d1ac4550a31e29f3b624aa4b05aecdf4ead5e133.png)  
set the FrombinNum  
 ![image](https://www.epiusers.help/uploads/default/original/3X/4/0/40e5f6d3fb590ddf574459565080f7b3ae79a091.png)

---

<div class="post-metadata">

**Author:** ![Chris\_Conn](https://www.epiusers.help/user_avatar/www.epiusers.help/chris_conn/32/93797_2.png) [@Chris\_Conn](https://www.epiusers.help/u/Chris_Conn)\
**Post date:** [June 7, 2024, 8:31pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/5 "2024-06-07T20:31:03Z")

</div>

I’d share some additional info, like Pre\Post and the details of your BPM.

---

<div class="post-metadata">

**Author:** ![TMorgan](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@TMorgan](https://www.epiusers.help/u/TMorgan)\
**Post date:** [June 9, 2024, 4:51pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/6 "2024-06-09T16:51:19Z")

</div>

Thanks for the proposal but I am still having problems. I have scaled the BPM back where I am only trying to show a true or false message based on the order number. However, every order shows True when processing through the BPM no matter the order number.

 ![image](https://www.epiusers.help/uploads/default/original/3X/0/4/043aacd4c91a6074cd9cb180bc009472ca20af5e.png)

---

<div class="post-metadata">

**Author:** ![gpayne](https://www.epiusers.help/user_avatar/www.epiusers.help/gpayne/32/55751_2.png) [@gpayne](https://www.epiusers.help/u/gpayne)\
**Post date:** [June 10, 2024, 1:29am UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/7 "2024-06-10T01:29:54Z")

</div>

You are not passing the current order so as long as the hardcoded order exists it will always return true.

I missed a piece of the puzzle assigning the material queue OrderNum to the variable orderNum, so you have something to use in the customer check.

 ![image](https://www.epiusers.help/uploads/default/original/3X/8/3/8338362e4019acdb94eed7be3d7826ccd372f31b.png)  
expression  
 ![image](https://www.epiusers.help/uploads/default/original/3X/e/f/efcc9ef12ab86cdc79ff7bb27d4fc838408a8e87.png)

---

<div class="post-metadata">

**Author:** ![TMorgan](https://www.epiusers.help/letter_avatar_proxy/v4/letter/t/96bed5/32.png) [@TMorgan](https://www.epiusers.help/u/TMorgan)\
**Post date:** [June 10, 2024, 1:37pm UTC](https://www.epiusers.help/t/materialqueue-method-directive/115501/8 "2024-06-10T13:37:06Z")

</div>

Thanks for the help. Good now.
