When passing Json data to a custom service with data contract
[DataContract]
public final class ProductionOrderPickingListContract extends ProductionOrderJournalContractBase
{
private List pickingListLines;
[
DataMember('pickingListLines'),
SysOperationLabel("@ManufacturingExecutionCommon:PickingListLines"),
DataCollection(Types::Class, classStr(ProductionOrderPickingListLineContract)),
Hookable(false)
]
}
the contract object does not properly decode the child List objects as seen below:
The JSON being passed is below:
{
"contract": {
"ProductionOrderNumber": "P04298",
"JournalNameId": null,
"ProductionDate": "2023-01-25T00:00:00-05:00",
"ProductionShift": null,
"pickingListLines": [
{
"ItemNumber": "800001",
"ConsumptionBOMQuantity": 0.0,
"ProposalBOMQuantity": 0.0,
"ScrapBOMQuantity": 0.0,
"BOMUnitSymbol": null,
"ConsumptionInventoryQuantity": 1.0,
"ProposalInventoryQuantity": 1.0,
"ConsumptionCatchWeightQuantity": 0.0,
"ProposalCatchWeightQuantity": 0.0,
"ConsumptionDate": "0001-01-01T00:00:00",
"OperationNumber": 0,
"LineNumber": 0.0,
"PositionNumber": null,
"InventoryLotId": null,
"IsConsumptionEnded": 0,
"ErrorCause": 0,
"ProductColorId": null,
"ProductConfigurationId": null,
"ProductSizeId": null,
"ProductStyleId": null,
"ProductVersionId": null,
"ItemBatchNumber": null,
"ProductionWarehouseId": "W032",
"ProductSerialNumber": null,
"ProductionSiteId": null,
"InventoryDimension1": null,
"InventoryDimension2": null,
"InventoryDimension3": null,
"InventoryDimension4": null,
"InventoryDimension5": null,
"InventoryDimension6": null,
"InventoryDimension7": null,
"InventoryDimension8": null,
"InventoryDimension9": null,
"InventoryDimension10": null,
"InventoryDimension11": null,
"InventoryDimension12": null,
"InventoryStatusId": null,
"LicensePlateNumber": null,
"InventoryGtdId": null,
"InventoryOwnerId": null,
"InventoryProfileId": null
},
{
"ItemNumber": "800001",
"ConsumptionBOMQuantity": 0.0,
"ProposalBOMQuantity": 0.0,
"ScrapBOMQuantity": 0.0,
"BOMUnitSymbol": null,
"ConsumptionInventoryQuantity": 1.0,
"ProposalInventoryQuantity": 1.0,
"ConsumptionCatchWeightQuantity": 0.0,
"ProposalCatchWeightQuantity": 0.0,
"ConsumptionDate": "0001-01-01T00:00:00",
"OperationNumber": 0,
"LineNumber": 0.0,
"PositionNumber": null,
"InventoryLotId": null,
"IsConsumptionEnded": 0,
"ErrorCause": 0,
"ProductColorId": null,
"ProductConfigurationId": null,
"ProductSizeId": null,
"ProductStyleId": null,
"ProductVersionId": null,
"ItemBatchNumber": null,
"ProductionWarehouseId": "W032",
"ProductSerialNumber": null,
"ProductionSiteId": null,
"InventoryDimension1": null,
"InventoryDimension2": null,
"InventoryDimension3": null,
"InventoryDimension4": null,
"InventoryDimension5": null,
"InventoryDimension6": null,
"InventoryDimension7": null,
"InventoryDimension8": null,
"InventoryDimension9": null,
"InventoryDimension10": null,
"InventoryDimension11": null,
"InventoryDimension12": null,
"InventoryStatusId": null,
"LicensePlateNumber": null,
"InventoryGtdId": null,
"InventoryOwnerId": null,
"InventoryProfileId": null
}
]
}
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156