Connect To Parent BO Method In Purchase Order BPM

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?

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

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

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

Will check back once I get back to this!