# Calling Another Method from a BPM

**URL:** <https://www.epiusers.help/t/calling-another-method-from-a-bpm/36393>\
**Category:** Epicor ERP 10\
**Created:** [November 22, 2016, 7:49pm UTC](https://www.epiusers.help/t/calling-another-method-from-a-bpm/36393 "2016-11-22T19:49:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rick\_Bird](https://www.epiusers.help/user_avatar/www.epiusers.help/rick_bird/32/77664_2.png) [@Rick\_Bird](https://www.epiusers.help/u/Rick_Bird)\
**Post date:** [November 22, 2016, 7:49pm UTC](https://www.epiusers.help/t/calling-another-method-from-a-bpm/36393/1 "2016-11-22T19:49:30Z")

</div>

Is it possible to call another Method from a BPM so to create records via business logic?  
I assume this is possible and would be done with the ‘Execute Custom Code’ Caller widget.  
I’m just getting started messing around with C# in Epicor and so far I have been depending on code that was converted from E9, so I’m a real newb at this, so patience please!  
I have found code to create new UD table rows but I’d rather not create rows directly and instead call a method to do so.  
Use Case: Working with Case Management, and the HelpDesk BO. When a Pack Slip & Line is entered on the Case we are looking for any related Job (via the Lot Number) and then we need to add a HDCaseLink row for JobHead:  
RelatedToFile = ‘JobHead’, Key1 = JobNum, Description = JobNum… etc.  
So far I have been able to use BPM widgets to get the JobNum if there is one but now I need to create the HdCaseLink record, preferably by calling ERP.HelpDesk.GetNewHDCaseLink  
Thanks!

---

<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:** [November 22, 2016, 7:55pm UTC](https://www.epiusers.help/t/calling-another-method-from-a-bpm/36393/2 "2016-11-22T19:55:57Z")

</div>

Check out the Programming Guide at EpicWeb, it has examples on how to do this.  
[https://epicweb.epicor.com/doc/Docs/Epicor10\_ConvertedCode\_ProgrammingGuide\_101400.pdf](https://epicweb.epicor.com/doc/Docs/Epicor10_ConvertedCode_ProgrammingGuide_101400.pdf)

---

<div class="post-metadata">

**Author:** ![Rick\_Bird](https://www.epiusers.help/user_avatar/www.epiusers.help/rick_bird/32/77664_2.png) [@Rick\_Bird](https://www.epiusers.help/u/Rick_Bird)\
**Post date:** [November 22, 2016, 10:24pm UTC](https://www.epiusers.help/t/calling-another-method-from-a-bpm/36393/3 "2016-11-22T22:24:17Z")

</div>

Thanks Jose, that helps… I think… I will poke around.  
I’m running to issues with understanding namespace and service names.  
Is there a way to get the structure without VS?  
Trying to get into BPM’s more… sorry…  
Thanks
