web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Supply chain | Supply Chain Management, Commerce
Unanswered

List in Data Contract not decoding properly.

(0) ShareShare
ReportReport
Posted on by 15

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:

Image

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
}
]
}
}

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Supply chain | Supply Chain Management, Commerce

#1
Mallesh Deshapaga Profile Picture

Mallesh Deshapaga 1,066

#2
Laurens vd Tang Profile Picture

Laurens vd Tang 212 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 136 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans