Order Release Method

Does anyone know what the method is that runs after you save a new order line and the order release gets automatically created?

I looked at the trace and could not see anything other than masterupdate. At that point, there was no rowmod on the release.

public bool GetNewOrderRel(int orderNum, int orderLine)?

Or ResetList() and AcceptChanges()


			this.salesOrderBO.MasterUpdate(lCheckForOrderChangedMsg, lcheckForResponse, cTableName, iCustNum, iOrderNum, lweLicensed, out lContinue, out cResponseMsg, out cCreditShipAction, out cDisplayMsg, out cCompliantMsg, out cResponseMsgOrdRel, this.salesOrderData);
			if (cResponseMsg == "")
			{
				if (num >= 0)
				{
					this.ResetList(ResetListMode.UpdateRow, this.salesOrderData.Tables[0].Rows[num]);
				}
				if (num2 >= 0)
				{
					this.ResetList(ResetListMode.AddRow, this.salesOrderData.Tables[0].Rows[num2]);
				}
				this.salesOrderData.AcceptChanges();
			}
			base.OnAfterAdapterMethod("Update");

@Chris_Conn I thought that too and put a BPM on that method and it did not fire.

1 Like

There is no method called for the first order rel it is part of the initial update logic.
If you need to run something on that order rel you can do it in post processing on Update
Or use a Data Directive

Jos? C Gomez
Senior Software Engineer

1 Like

@josecgomez

Just getting back to this. I have created a date field on the Order Line that I want to push to that same date field that I created on the Order Release too (like Ship By or Need By). Do you have any idea if that can be done?