# Calling a Business Object in a BPM

**URL:** <https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107>\
**Category:** Epicor ERP 10\
**Tags:** bpm\
**Created:** [October 24, 2019, 8:23am UTC](https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107 "2019-10-24T08:23:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steveh](https://www.epiusers.help/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@steveh](https://www.epiusers.help/u/steveh)\
**Post date:** [October 24, 2019, 8:23am UTC](https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107/1 "2019-10-24T08:23:00Z")

</div>

Hi everyone.

I am trying to create a BPM to call a business object. Ultimately what I want to do is insert an operation into a Job based on certain conditions but I am falling at the first hurdle just to beging communicating with the BO. I have looked at various sources and as far as I can see something like this should be the correct format to start the conversation with the BO.

var bo = Ice.Assemblies.ServiceRenderer.GetService\<Erp.Contracts.JobEntrySvcContract\>();  
var dsJobData = bo.GetByID(“1234”);

With the assembly referenced like this

![image](https://epiusers.help/uploads/default/original/3X/a/a/aa3d2404a1bce2d6b72f7c1232815200d909b6fe.png)

But when I try and check the syntax I get this error.

CS7036 There is no argument given that corresponds to the required formal parameter ‘dataContext’ of ‘ServiceRenderer.GetService(IceDataContext, bool)’

What am I missing? Any help greatly appreciated.

---

<div class="post-metadata">

**Author:** ![steveh](https://www.epiusers.help/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@steveh](https://www.epiusers.help/u/steveh)\
**Post date:** [October 24, 2019, 8:35am UTC](https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107/2 "2019-10-24T08:35:51Z")

</div>

Update…this is 10.2.400.8

I just tried it on an Education build version 10.2.100 and is seems to be fine. So is anyone aware of any updates in the more recent versions that may break this?

---

<div class="post-metadata">

**Author:** ![carlosqt](https://www.epiusers.help/user_avatar/www.epiusers.help/carlosqt/32/477_2.png) [@carlosqt](https://www.epiusers.help/u/carlosqt)\
**Post date:** [October 24, 2019, 9:44am UTC](https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107/3 "2019-10-24T09:44:27Z")

</div>

Hi Steve,

you are missing the parameter.  
var bo = Ice.Assemblies.ServiceRenderer.GetService\<Erp.Contracts.JobEntrySvcContract\>**(this.Db);**

Try like that and check syntax again.  
Regards,

---

<div class="post-metadata">

**Author:** ![steveh](https://www.epiusers.help/letter_avatar_proxy/v4/letter/s/5fc32e/32.png) [@steveh](https://www.epiusers.help/u/steveh)\
**Post date:** [October 25, 2019, 6:21am UTC](https://www.epiusers.help/t/calling-a-business-object-in-a-bpm/61107/4 "2019-10-25T06:21:03Z")

</div>

Great, thanks for that. All sorted 😃
