# Connect To Parent BO Method In Purchase Order BPM

**URL:** <https://www.epiusers.help/t/connect-to-parent-bo-method-in-purchase-order-bpm/114671>\
**Category:** Kinetic ERP\
**Tags:** custom-code, bpm, purchase-order\
**Created:** [May 14, 2024, 6:05pm UTC](https://www.epiusers.help/t/connect-to-parent-bo-method-in-purchase-order-bpm/114671 "2024-05-14T18:05:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![halcyon](https://www.epiusers.help/user_avatar/www.epiusers.help/halcyon/32/81699_2.png) [@halcyon](https://www.epiusers.help/u/halcyon)\
**Post date:** [May 14, 2024, 6:05pm UTC](https://www.epiusers.help/t/connect-to-parent-bo-method-in-purchase-order-bpm/114671/1 "2024-05-14T18:05:41Z")

</div>

I am currently working within the PO.Update method to alter the order’s promise date to match the due date UNTIL the order is confirmed.

I have the field set correctly in the header and it is working as intended. However, I also have a request from my users that the same functionality needs to exist for the PO Release Detail.

Now, I can get the fields to match by using the PORelSearch.Update method, but my problem is that I’m not seeing a good way to connect to the PO fields to see that Order Confirmed field.

is there a good way to bridge the gap between methods and tables when they share a connection?

---

<div class="post-metadata">

**Author:** ![kve](https://www.epiusers.help/user_avatar/www.epiusers.help/kve/32/76150_2.png) [@kve](https://www.epiusers.help/u/kve)\
**Post date:** [May 15, 2024, 12:12am UTC](https://www.epiusers.help/t/connect-to-parent-bo-method-in-purchase-order-bpm/114671/2 "2024-05-15T00:12:11Z")

</div>

I can’t remember what the Order Confirmed field is named, but something like this should get you there:

```auto
var poRel = ds.PORel.FirstOrDefault( x => x.Added() || x.Updated() );

bool ConfirmedPO = Db.POHeader.FirstOrDefault( x => x.PONum == poRel.PONum );

```

---

<div class="post-metadata">

**Author:** ![halcyon](https://www.epiusers.help/user_avatar/www.epiusers.help/halcyon/32/81699_2.png) [@halcyon](https://www.epiusers.help/u/halcyon)\
**Post date:** [May 16, 2024, 6:04pm UTC](https://www.epiusers.help/t/connect-to-parent-bo-method-in-purchase-order-bpm/114671/3 "2024-05-16T18:04:03Z")

</div>

Will check back once I get back to this!
