# BPM code changes from 10.x to 11

**URL:** <https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502>\
**Category:** Kinetic ERP\
**Tags:** bpm\
**Created:** [February 7, 2024, 3:57pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502 "2024-02-07T15:57:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![juandnavia](https://www.epiusers.help/user_avatar/www.epiusers.help/juandnavia/32/64959_2.png) [@juandnavia](https://www.epiusers.help/u/juandnavia)\
**Post date:** [February 7, 2024, 3:57pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502/1 "2024-02-07T15:57:19Z")

</div>

Hey all, I’m pretty new to BPMs in general, and I’m working with some old code that needs to be acclimated to the new Kinetic version.

In our current implementation the code, we create what seems to be a table-type class, define some parameters for it, and add it to the database:

```auto
OrderHedUPS oU = new OrderHedUPS();

//Do stuff
...

Db.AddToOrderHedUPS(oU); //<--- Syntax Error
Db.Validate();

```

However in the new version the method `Db.AddToOrderHedUPS()` does not exist.  
I looked for it with the `CTRL+SPACE` shortcut but can’t find it. The only relevant options I see are:

`Db.Add()` or `Db.AddObject ()`

I tried finding more information about these methods but there doesn’t seem to be documentation like you’d find for most programming libraries, so I’m not sure how these would work in practice.

From other code examples here, some people seem to use `Db.SaveChanges();` as well instead of `Db.Validate()`

I guess my question is, where can I find more info on these methods, or does anyone know exactly how this code could be translated to a new implementation in version 11?

---

<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:** [February 7, 2024, 4:11pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502/2 "2024-02-07T16:11:25Z")

</div>

@juandnavia Welcome. This all needs to move to using business objects and not Db.

Here is a thread on resources. I would do a trace on the thing you want to automate in Epicor and then use the BLTester to get the parameters down.

> [@Epicor Training for Developers](https://www.epiusers.help/t/epicor-training-for-developers/97731/12):
>
> Welcome aboard the good ship EpiUsers @datadaddy. I agree it is tricky to understand it, initially. At least you are bringing some amount of experience to the table to start with. If you are doing classic customizations then the tools that will help, and it sounds you are steps ahead with the VS debugging, you can do this with BPMs too. I’m pretty sure I replied to a post a while ago with a heap of links… Of course I can’t find it now. A couple of tools that you might find useful are: …

---

<div class="post-metadata">

**Author:** ![juandnavia](https://www.epiusers.help/user_avatar/www.epiusers.help/juandnavia/32/64959_2.png) [@juandnavia](https://www.epiusers.help/u/juandnavia)\
**Post date:** [February 7, 2024, 4:25pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502/3 "2024-02-07T16:25:52Z")

</div>

Thanks for the quick reply @gpayne

What a fantastic rabbit-hole of information! Right off the bat, the `.CHM` schema for Kinetic and the Visual Studio Extension seem like wonderful tools.

Not entirely sure what business objects are exactly and how I would transform the current BPM code to use it, but I’ll keep digging.

---

<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:** [February 7, 2024, 4:37pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502/4 "2024-02-07T16:37:19Z")

</div>

Another link to EpicWeb Documentation. The add a misc charge to a sales order is similar to what you are doing. I would also search for erp bo ref on EpicWeb and find the latest 10.2.700 bo reference.

[https://epicweb.epicor.com/doc/Docs/Kinetic\_bpmcookbook\_2021.1.pdf](https://epicweb.epicor.com/doc/Docs/Kinetic_bpmcookbook_2021.1.pdf)

---

<div class="post-metadata">

**Author:** ![jtownsend](https://www.epiusers.help/letter_avatar_proxy/v4/letter/j/f14d63/32.png) [@jtownsend](https://www.epiusers.help/u/jtownsend)\
**Post date:** [February 7, 2024, 4:37pm UTC](https://www.epiusers.help/t/bpm-code-changes-from-10-x-to-11/111502/5 "2024-02-07T16:37:45Z")

</div>

> [@gpayne](#):
>
> I would do a trace on the thing you want to automate in Epicor and then use the BLTester to get the parameters down.

Alternatively, the REST swagger page.
