I am not sure if I can continue with this post so hopefully this is okay.
We are on 10.2.400.10 and are also looking to issue material to job via rest. We have SMT placement equipment that drop/reject parts (normal process) and we can extract that part/quantity information through a summary text file. Currently, I am just trying to test the Material Issue through Swagger to prove it out but have not been successful so far. I can make it work as a Quantity Adjustment but not as Issue Material as it fails during the PerformMaterialMovement (Parameter plNegQtyAction is not found in the input object).
I’ve read the Rest documentation in Epicor help, the REST Overview Novel, taken an extended education Rest class a couple of years ago and read many, many postings and this posting is exactly what I am looking to do, but I’m sure I’m missing something.
I’ve performed the trace, extracted what I don’t think is necessary and below are what I think are the Methods of importance for Erp.Proxy.BO.IssueReturnImpl;
Erp.Proxy.BO.IssueReturnImpl.GetNewPartNum()
Erp.Proxy.BO.IssueReturnImpl.OnChangingToJobSeq()
Erp.Proxy.BO.IssueReturnImpl.OnChangeToJobSeq()
Erp.Proxy.BO.IssueReturnImpl.OnChangeTranQty()
Erp.Proxy.BO.IssueReturnImpl.PrePerformMaterialMovement()
Erp.Proxy.BO.IssueReturnImpl.MasterInventoryBinTests()
Erp.Proxy.BO.IssueReturnImpl.PerformMaterialMovement()
This is where I am a bit fuzzy on as I think I only need to execute the PerformMaterialMovement call as I will have all the necessary information gathered from an initial Rest/BAQ call. But maybe I need to setup the transaction with one of the previous Methods. The PerformMaterialMovement Input that I am trying to execute is;
{
“plNegQtyAction”: false,
“ds”: {
“IssueReturn”: [
{
“Company”: “AXIO”,
“TranDate”: “2020-08-19T16:49:11.301Z”,
“PartNum”: “0R0-0402”,
“TranQty”: “22”,
“DimCode:” “EA”,
“FromWarehouseCode”: “RM”,
“FromBinNum”: “SMAA1”,
“OnHandQty”: “19241.00000000”,
“QtyRequired”: “600”,
“QtyPreviouslyIssued”: “15”,
“ToJobNum”: “006349”,
“ToAssemblySeq”: 0,
“ToJobSeq”: 40,
“ToJobSeqPartDesc”: “0R0-0402 1% SMD RESISTOR”,
“TranReference”: “RestTest 5”,
“ToJobPartNum”: “SMT-15011-01”,
“ToAssemblyPartNum”: “SMT-15011-01”,
“ToJobSeqPartNum”: “0R0-0402”,
“TranType”: “STK-MTL”,
“DimConvFactor”: “1”,
“UM”: “EA”,
“FromJobPlant”: “MfgSys”,
“ToJobPlant”: “MfgSys”,
“DummyKeyField”: “tpeat1”,
“TreeDisplay”: “006349 : 0”,
“EnableToFields”: true,
“EnableFromFields”: false,
“RequirementUOM”: “EA”,
“RequirementQty”: “15”,
“EnableSN”: false,
“SerialControlPlantIsFromPlt”: false,
“ProcessID”: “IssueMaterial”,
“TrackDimension”: false,
“OnHandUM”: “EA”,
“FromBinNumDescription”: “SHELF SM AA1”,
“FromWarehouseCodeDescription”: “Raw Material”,
“PartSalesUM”: “EA”,
“PartIUM”: “EA”,
“PartPricePerCode”: “E”,
“PartSellingFactor”: “1”,
“PartPartDescription”: “0R0-0402 1% SMD RESISTOR”,
“RowMod”: “A”
}
]
}
}
The Error that I am getting is;
“ErrorMessage”: “Parameter plNegQtyAction is not found in the input object”,
“ErrorType”: “Epicor.RESTApi.ErrorHandling.ApiException”
Any direction would be appreciated. Thanks.