Ok so you’ll need a function and a UBAQ because V1 of REST does’nt support direct function calls…
Both of these are attached
CustShip.efxb (23.6 KB)
Ship.baq (48.0 KB)
You’ll need to import the function first, then the BAQ.
Dictionary<string, string> dic = new Dictionary<string, string>();
dic.Add("PackNum", "293");
dynamic paraData = EpicorRest.DynamicGet("BaqSvc","Ship", dic);
This is the REST Call to make
NOTE I am providing these as is I can’t be responsible of your crap blows up, use at your own risk. Try it in TEST or PILOT first. Seriously… as the “kids” say these days don’t at me bro
I don’t know how or if these will work on the public cloud since they have a lot more restrictions. But I’m hoping it will.
FWIW the issue is definitely the Before Image (BI) issue outlined before even using a BPM Widgets it didn’t work had to specifically clone the row and do the BufferedCopy stuff before it would work.
Here’s how the function looks like
And the code it executes
var currentRow = this.dss.ShipHead[0];
var newRow = this.dss.ShipHead.NewRow();
BufferCopy.CopyExceptFor(currentRow, newRow, "");
currentRow.ReadyToInvoice =true;
currentRow.RowMod="U";
this.dss.ShipHead.Add(newRow);
var shipDs = this.dss;
uf.UpdateMaster(ref shipDs,true,true,false,true,true,true,true,this.packNum, currentRow.BTCustNum, out opReleaseMessage, out opCompleteMessage, out opShippingMessage, out opLotMessage, out opInventoryMessage, out opLockQtyMessage, out opAllocationMessage, out opPartListNeedsAttr, out opLotListNeedsAttr, out shipCreditMsg, out cError, out compError, out msg, out opPostUpdMessage, out updateComplete, out checkComplianceError, out changeStatusError, out checkShipDtlAgain);